コード例 #1
0
 public function __construct(Product $product, UuidInterface $id = null)
 {
     parent::__construct($id);
     $this->setFlagApplyCatalogPromotions(false);
     $this->product = $product;
     $product->addProductQuantityDiscount($this);
 }
コード例 #2
0
ファイル: Coupon.php プロジェクト: inklabs/kommerce-core
 /**
  * @param string $code
  * @param UuidInterface $id
  */
 public function __construct($code, UuidInterface $id = null)
 {
     parent::__construct($id);
     $this->flagFreeShipping = false;
     $this->canCombineWithOtherCoupons = false;
     $this->setCode($code);
 }