commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
CartDiscountValueAbsoluteBuilder.php
1 <?php
2 
3 declare(strict_types=1);
10 
17 use stdClass;
18 
23 {
28  private $money;
29 
34  private $applicationMode;
35 
42  public function getMoney()
43  {
44  return $this->money;
45  }
46 
53  public function getApplicationMode()
54  {
55  return $this->applicationMode;
56  }
57 
62  public function withMoney(?CentPrecisionMoneyCollection $money)
63  {
64  $this->money = $money;
65 
66  return $this;
67  }
68 
73  public function withApplicationMode(?string $applicationMode)
74  {
75  $this->applicationMode = $applicationMode;
76 
77  return $this;
78  }
79 
80 
81  public function build(): CartDiscountValueAbsolute
82  {
84  $this->money,
85  $this->applicationMode
86  );
87  }
88 
89  public static function of(): CartDiscountValueAbsoluteBuilder
90  {
91  return new self();
92  }
93 }