public function same_as($p_otherObject) { return get_class($this) == get_class($p_otherObject) && $this->m_number == $p_otherObject->m_number && $this->m_fieldName == $p_otherObject->m_fieldName && $this->m_name == $p_otherObject->m_name; }
private function setSubtitleHandler(MetaSubtitle $p_oldSubtitle, MetaSubtitle $p_newSubtitle) { if (!$p_oldSubtitle->same_as($p_newSubtitle)) { $this->m_objects['subtitle'] = $p_newSubtitle; } }