/** * {@inheritdoc} */ public function equals($other) { return parent::equals($other) && $this->getLineThickness() === $other->getLineThickness(); }
/** * {@inheritdoc} */ public function equals($other) { if (!$other instanceof self) { throw new \InvalidArgumentException('Invalid Text Object'); } if (!parent::equals($other)) { return false; } if ($this->getString() !== $other->getString()) { return false; } if (!$this->getFont()->equals($other->getFont())) { return false; } if (!$this->getBoundingBox()->equals($other->getBoundingBox())) { return false; } return true; }