Example #1
0
 /**
  * Retrieve subordinate coupons
  *
  * @return \Magento\SalesRule\Model\Coupon[]
  */
 public function getCoupons()
 {
     if ($this->_coupons === null) {
         $this->_couponCollection->addRuleToFilter($this);
         $this->_coupons = $this->_couponCollection->getItems();
     }
     return $this->_coupons;
 }