예제 #1
0
 /**
  * Get coupon code hash
  *
  * @param \XLite\Module\CDev\Coupons\Model\UsedCoupon $coupon Used coupon entity
  *
  * @return string
  */
 protected function getCouponCodeHash($coupon)
 {
     return md5($coupon->getCode());
 }
 /**
  * {@inheritDoc}
  */
 public function getCode()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'getCode', array());
     return parent::getCode();
 }