id = $id; $this->src = $src; } /** * @deprecated 1.0 * @since 0.9 * @return int */ public function get_value() { return $this->id; } /** * @since 0.9 * @return int|null */ public function get_id() { return $this->id; } /** * @since 0.9 * @return null|string */ public function get_src() { return $this->src; } /** * @inheritdoc * @since 0.9 */ public function is_equal_to($other) { return $other instanceof self && $this->get_id() == $other->get_id() && $this->get_src() == $other->get_src(); } }