/** * {@inheritdoc} */ public function isEqualTo(ValueObject $object) : bool { return $object instanceof Price && $object->getAmount() === $this->amount && $object->getCurrency() === $this->currency; }