/** * @param OfferInterface $offer * @return bool */ public function equals(OfferInterface $offer) { if (!$this->id || !$offer->getId()) { return false; } return $this->id == $offer->getId(); }
/** * @return MoneyInterface */ public function getCost() { return $this->offer->getCost(); }