Beispiel #1
0
 /**
  * @param Offer $offer
  * @return $this
  */
 public function addOffer(Offer $offer)
 {
     $idx = !is_null($offer->getGroupId()) ? (string) $offer->getGroupId() . ":" . (string) $offer->getId() : "0:" . (string) $offer->getId();
     $this->offers[$idx] = $offer;
     return $this;
 }