commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
AddBillingAddressIdChangeBuilder.php
1<?php
2
3declare(strict_types=1);
10
16use stdClass;
19
24{
29 private $change;
30
35 private $previousValue;
36
41 private $nextValue;
42
47 private $address;
48
53 public function getChange()
54 {
55 return $this->change;
56 }
57
64 public function getPreviousValue()
65 {
66 return $this->previousValue;
67 }
68
75 public function getNextValue()
76 {
77 return $this->nextValue;
78 }
79
86 public function getAddress()
87 {
88 return $this->address instanceof AddressBuilder ? $this->address->build() : $this->address;
89 }
90
95 public function withChange(?string $change)
96 {
97 $this->change = $change;
98
99 return $this;
100 }
101
106 public function withPreviousValue(?array $previousValue)
107 {
108 $this->previousValue = $previousValue;
109
110 return $this;
111 }
112
117 public function withNextValue(?array $nextValue)
118 {
119 $this->nextValue = $nextValue;
120
121 return $this;
122 }
123
128 public function withAddress(?Address $address)
129 {
130 $this->address = $address;
131
132 return $this;
133 }
134
139 public function withAddressBuilder(?AddressBuilder $address)
140 {
141 $this->address = $address;
142
143 return $this;
144 }
145
147 {
149 $this->change,
150 $this->previousValue,
151 $this->nextValue,
152 $this->address instanceof AddressBuilder ? $this->address->build() : $this->address
153 );
154 }
155
156 public static function of(): AddBillingAddressIdChangeBuilder
157 {
158 return new self();
159 }
160}