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