Beispiel #1
0
 /**
  * Constructs from a ShoppCartItem
  *
  * @author Jonathan Davis
  * @since 1.3
  *
  * @param ShoppCartItem $Item The Cart Item to construct from
  * @return void
  **/
 public function __construct(ShoppOrderDiscount $Discount)
 {
     $this->amount = $Discount->amount();
     $this->id = $Discount->promo;
 }
Beispiel #2
0
 public function __construct(ShoppOrderDiscount $Discount)
 {
     $this->id = $Discount->id();
     $this->name = $Discount->name();
     $this->type = $Discount->type();
     $this->target = $Discount->target();
     $this->discount = $Discount->discount();
     $this->amount = $Discount->amount();
     $this->code = $Discount->code();
     $this->shipfree = $Discount->shipfree();
     $this->amount = $Discount->amount();
 }