commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
CartSetDirectDiscountsActionBuilder.php
1 <?php
2 
3 declare(strict_types=1);
10 
16 use stdClass;
17 
22 {
27  private $discounts;
28 
39  public function getDiscounts()
40  {
41  return $this->discounts;
42  }
43 
48  public function withDiscounts(?DirectDiscountDraftCollection $discounts)
49  {
50  $this->discounts = $discounts;
51 
52  return $this;
53  }
54 
55 
57  {
59  $this->discounts
60  );
61  }
62 
63  public static function of(): CartSetDirectDiscountsActionBuilder
64  {
65  return new self();
66  }
67 }