Example #1
0
 /**
  * Remove quoteProductOffer
  *
  * @param QuoteProductOffer $quoteProductOffer
  * @return QuoteProduct
  */
 public function removeQuoteProductOffer(QuoteProductOffer $quoteProductOffer)
 {
     if ($this->quoteProductOffers->contains($quoteProductOffer)) {
         $this->quoteProductOffers->removeElement($quoteProductOffer);
     }
     return $this;
 }
 /**
  * @return bool
  */
 public function hasOfferVariants()
 {
     if (count($this->quoteProductOffers) > 1) {
         return true;
     }
     /** @var QuoteProductOffer $firstItem */
     $firstItem = $this->quoteProductOffers->first();
     return $firstItem && $firstItem->isAllowIncrements();
 }