commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
ChangeRequiresDiscountCodeChangeBuilder.php
1<?php
2
3declare(strict_types=1);
10
16use stdClass;
17
22{
27 private $change;
28
33 private $previousValue;
34
39 private $nextValue;
40
45 public function getChange()
46 {
47 return $this->change;
48 }
49
56 public function getPreviousValue()
57 {
58 return $this->previousValue;
59 }
60
67 public function getNextValue()
68 {
69 return $this->nextValue;
70 }
71
76 public function withChange(?string $change)
77 {
78 $this->change = $change;
79
80 return $this;
81 }
82
87 public function withPreviousValue(?bool $previousValue)
88 {
89 $this->previousValue = $previousValue;
90
91 return $this;
92 }
93
98 public function withNextValue(?bool $nextValue)
99 {
100 $this->nextValue = $nextValue;
101
102 return $this;
103 }
104
105
107 {
109 $this->change,
110 $this->previousValue,
111 $this->nextValue
112 );
113 }
114
116 {
117 return new self();
118 }
119}