/** * {@inheritdoc} */ public function equals($other) { if (!$other instanceof self) { throw new \InvalidArgumentException('Invalid Border Object'); } return parent::equals($other); }
/** * {@inheritdoc} */ public function equals($other) { if (!$other instanceof self) { throw new \InvalidArgumentException('Invalid Pixel Object'); } if (!parent::equals($other)) { return false; } if (!$this->getCoordinate()->equals($other->getCoordinate())) { return false; } return true; }
/** * {@inheritdoc} */ public function equals($other) { if (!$other instanceof self) { throw new \InvalidArgumentException('Invalid Line Object'); } if (!parent::equals($other)) { return false; } if (!$this->getStart()->equals($other->getStart())) { return false; } if (!$this->getEnd()->equals($other->getEnd())) { return false; } return true; }