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