/** * {@inheritdoc} */ public function isEqualTo(ValueObject $object) : bool { return $object instanceof BillingInformation && $object->getAddress() === $this->address && $object->getCity() === $this->city && $object->getZip() === $this->zip && $object->getCountry()->isIdentityEqualTo($this->country); }