/** * (non-PHPdoc) * @see RtfElement::equals() */ public function equals($object) { if (!parent::equals($object)) { return false; } if (count($this->children) !== count($object->children)) { return false; } foreach ($this->children as $i => $child) { if (!$child->equals($object->children[$i])) { return false; } } return true; }
/** * (non-PHPdoc) * @see RtfElement::equals() */ public function equals($object) { return parent::equals($object) && $this->word === $object->word && $this->parameter === $object->parameter; }
/** * (non-PHPdoc) * @see RtfElement::equals() */ public function equals($object) { return parent::equals($object) && $this->text === $object->text; }
/** * (non-PHPdoc) * @see RtfElement::equals() */ public function equals($object) { return parent::equals($object) && $this->_symbol === $object->_symbol; }