commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
lib
commercetools-history
src
Models
Change
SetShippingCustomFieldChangeBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\History\Models\Change
;
10
11
use
Commercetools\Base\Builder
;
12
use
Commercetools\Base\DateTimeImmutableCollection
;
13
use
Commercetools\Base\JsonObject
;
14
use
Commercetools\Base\JsonObjectModel
;
15
use
Commercetools\Base\MapperFactory
;
16
use stdClass;
17
21
final
class
SetShippingCustomFieldChangeBuilder
implements
Builder
22
{
27
private
$change;
28
33
private
$shippingKey;
34
39
private
$name;
40
45
private
$customTypeId;
46
51
private
$previousValue;
52
57
private
$nextValue;
58
63
public
function
getChange
()
64
{
65
return
$this->change;
66
}
67
74
public
function
getShippingKey
()
75
{
76
return
$this->shippingKey;
77
}
78
85
public
function
getName
()
86
{
87
return
$this->name;
88
}
89
96
public
function
getCustomTypeId
()
97
{
98
return
$this->customTypeId;
99
}
100
107
public
function
getPreviousValue
()
108
{
109
return
$this->previousValue;
110
}
111
118
public
function
getNextValue
()
119
{
120
return
$this->nextValue;
121
}
122
127
public
function
withChange
(?
string
$change)
128
{
129
$this->change = $change;
130
131
return
$this;
132
}
133
138
public
function
withShippingKey
(?
string
$shippingKey)
139
{
140
$this->shippingKey = $shippingKey;
141
142
return
$this;
143
}
144
149
public
function
withName
(?
string
$name)
150
{
151
$this->name = $name;
152
153
return
$this;
154
}
155
160
public
function
withCustomTypeId
(?
string
$customTypeId)
161
{
162
$this->customTypeId = $customTypeId;
163
164
return
$this;
165
}
166
171
public
function
withPreviousValue
( $previousValue)
172
{
173
$this->previousValue = $previousValue;
174
175
return
$this;
176
}
177
182
public
function
withNextValue
( $nextValue)
183
{
184
$this->nextValue = $nextValue;
185
186
return
$this;
187
}
188
189
190
public
function
build
():
SetShippingCustomFieldChange
191
{
192
return
new
SetShippingCustomFieldChangeModel
(
193
$this->change,
194
$this->shippingKey,
195
$this->name,
196
$this->customTypeId,
197
$this->previousValue,
198
$this->nextValue
199
);
200
}
201
202
public
static
function
of
():
SetShippingCustomFieldChangeBuilder
203
{
204
return
new
self
();
205
}
206
}
Commercetools\Base\DateTimeImmutableCollection
Definition
DateTimeImmutableCollection.php:21
Commercetools\Base\JsonObjectModel
Definition
JsonObjectModel.php:15
Commercetools\Base\MapperFactory
Definition
MapperFactory.php:16
Commercetools\History\Models\Change\SetShippingCustomFieldChangeBuilder
Definition
SetShippingCustomFieldChangeBuilder.php:22
Commercetools\History\Models\Change\SetShippingCustomFieldChangeBuilder\getPreviousValue
getPreviousValue()
Definition
SetShippingCustomFieldChangeBuilder.php:107
Commercetools\History\Models\Change\SetShippingCustomFieldChangeBuilder\getCustomTypeId
getCustomTypeId()
Definition
SetShippingCustomFieldChangeBuilder.php:96
Commercetools\History\Models\Change\SetShippingCustomFieldChangeBuilder\of
static of()
Definition
SetShippingCustomFieldChangeBuilder.php:202
Commercetools\History\Models\Change\SetShippingCustomFieldChangeBuilder\build
build()
Definition
SetShippingCustomFieldChangeBuilder.php:190
Commercetools\History\Models\Change\SetShippingCustomFieldChangeBuilder\withShippingKey
withShippingKey(?string $shippingKey)
Definition
SetShippingCustomFieldChangeBuilder.php:138
Commercetools\History\Models\Change\SetShippingCustomFieldChangeBuilder\getShippingKey
getShippingKey()
Definition
SetShippingCustomFieldChangeBuilder.php:74
Commercetools\History\Models\Change\SetShippingCustomFieldChangeBuilder\withPreviousValue
withPreviousValue( $previousValue)
Definition
SetShippingCustomFieldChangeBuilder.php:171
Commercetools\History\Models\Change\SetShippingCustomFieldChangeBuilder\getChange
getChange()
Definition
SetShippingCustomFieldChangeBuilder.php:63
Commercetools\History\Models\Change\SetShippingCustomFieldChangeBuilder\getNextValue
getNextValue()
Definition
SetShippingCustomFieldChangeBuilder.php:118
Commercetools\History\Models\Change\SetShippingCustomFieldChangeBuilder\withNextValue
withNextValue( $nextValue)
Definition
SetShippingCustomFieldChangeBuilder.php:182
Commercetools\History\Models\Change\SetShippingCustomFieldChangeBuilder\withCustomTypeId
withCustomTypeId(?string $customTypeId)
Definition
SetShippingCustomFieldChangeBuilder.php:160
Commercetools\History\Models\Change\SetShippingCustomFieldChangeBuilder\withName
withName(?string $name)
Definition
SetShippingCustomFieldChangeBuilder.php:149
Commercetools\History\Models\Change\SetShippingCustomFieldChangeBuilder\withChange
withChange(?string $change)
Definition
SetShippingCustomFieldChangeBuilder.php:127
Commercetools\History\Models\Change\SetShippingCustomFieldChangeBuilder\getName
getName()
Definition
SetShippingCustomFieldChangeBuilder.php:85
Commercetools\History\Models\Change\SetShippingCustomFieldChangeModel
Definition
SetShippingCustomFieldChangeModel.php:21
Commercetools\Base\Builder
Definition
Builder.php:16
Commercetools\Base\JsonObject
Definition
JsonObject.php:15
Commercetools\History\Models\Change\SetShippingCustomFieldChange
Definition
SetShippingCustomFieldChange.php:15
Commercetools\History\Models\Change
Definition
AddAddressChange.php:9
Generated by
1.9.8