/**
  * @param \Heystack\Core\Identifier\IdentifierInterface $identifier
  * @return bool
  */
 public function hasReport(IdentifierInterface $identifier)
 {
     return isset($this->reports[$identifier->getFull()]);
 }
Exemplo n.º 2
0
 /**
  * @param \Heystack\Core\Identifier\IdentifierInterface $identifier
  * @return bool
  */
 public function hasCountry(IdentifierInterface $identifier)
 {
     return isset($this->countries[$identifier->getFull()]);
 }
 /**
  * @param \Heystack\Core\Identifier\IdentifierInterface $identifier
  * @return void
  */
 public function removeCoupon(IdentifierInterface $identifier)
 {
     $identifierText = $identifier->getFull();
     if (isset($this->coupons[$identifierText])) {
         unset($this->coupons[$identifierText]);
         $this->saveState();
         $this->getEventService()->dispatch(Events::COUPON_REMOVED);
     }
 }
Exemplo n.º 4
0
 /**
  * @param \Heystack\Core\Identifier\IdentifierInterface $referenceDataProviderIdentifier
  * @return bool
  */
 public function hasReferenceDataProvider(IdentifierInterface $referenceDataProviderIdentifier)
 {
     return isset($this->referenceDataProviders[$referenceDataProviderIdentifier->getFull()]);
 }
 /**
  * Returns whether or not the purchable is on the holder
  * @param \Heystack\Core\Identifier\IdentifierInterface $identifier
  * @return bool
  */
 public function hasPurchasable(IdentifierInterface $identifier)
 {
     return isset($this->purchasables[$identifier->getFull()]);
 }
 /**
  * @param \Heystack\Core\Identifier\IdentifierInterface $dealIdentifier
  * @param \SebastianBergmann\Money\Money $discountAmount
  * @return void
  */
 public function setDealDiscount(IdentifierInterface $dealIdentifier, Money $discountAmount)
 {
     $this->dealDiscounts[$dealIdentifier->getFull()] = $discountAmount;
 }
 /**
  * @param \Heystack\Core\Identifier\IdentifierInterface $identifier
  * @return bool
  */
 public function hasCurrency(IdentifierInterface $identifier)
 {
     return isset($this->currencies[$identifier->getFull()]);
 }