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
ChangeAssetOrderChangeBuilder.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
use
Commercetools\History\Models\Common\LocalizedStringCollection
;
18
22
final
class
ChangeAssetOrderChangeBuilder
implements
Builder
23
{
28
private
$change;
29
34
private
$previousValue;
35
40
private
$nextValue;
41
46
private
$catalogData;
47
52
private
$variant;
53
58
public
function
getChange
()
59
{
60
return
$this->change;
61
}
62
69
public
function
getPreviousValue
()
70
{
71
return
$this->previousValue;
72
}
73
80
public
function
getNextValue
()
81
{
82
return
$this->nextValue;
83
}
84
95
public
function
getCatalogData
()
96
{
97
return
$this->catalogData;
98
}
99
107
public
function
getVariant
()
108
{
109
return
$this->variant;
110
}
111
116
public
function
withChange
(?
string
$change)
117
{
118
$this->change = $change;
119
120
return
$this;
121
}
122
127
public
function
withPreviousValue
(?
LocalizedStringCollection
$previousValue)
128
{
129
$this->previousValue = $previousValue;
130
131
return
$this;
132
}
133
138
public
function
withNextValue
(?
LocalizedStringCollection
$nextValue)
139
{
140
$this->nextValue = $nextValue;
141
142
return
$this;
143
}
144
149
public
function
withCatalogData
(?
string
$catalogData)
150
{
151
$this->catalogData = $catalogData;
152
153
return
$this;
154
}
155
160
public
function
withVariant
(?
string
$variant)
161
{
162
$this->variant = $variant;
163
164
return
$this;
165
}
166
167
168
public
function
build
():
ChangeAssetOrderChange
169
{
170
return
new
ChangeAssetOrderChangeModel
(
171
$this->change,
172
$this->previousValue,
173
$this->nextValue,
174
$this->catalogData,
175
$this->variant
176
);
177
}
178
179
public
static
function
of
():
ChangeAssetOrderChangeBuilder
180
{
181
return
new
self
();
182
}
183
}
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\ChangeAssetOrderChangeBuilder
Definition
ChangeAssetOrderChangeBuilder.php:23
Commercetools\History\Models\Change\ChangeAssetOrderChangeBuilder\getCatalogData
getCatalogData()
Definition
ChangeAssetOrderChangeBuilder.php:95
Commercetools\History\Models\Change\ChangeAssetOrderChangeBuilder\withPreviousValue
withPreviousValue(?LocalizedStringCollection $previousValue)
Definition
ChangeAssetOrderChangeBuilder.php:127
Commercetools\History\Models\Change\ChangeAssetOrderChangeBuilder\getPreviousValue
getPreviousValue()
Definition
ChangeAssetOrderChangeBuilder.php:69
Commercetools\History\Models\Change\ChangeAssetOrderChangeBuilder\getChange
getChange()
Definition
ChangeAssetOrderChangeBuilder.php:58
Commercetools\History\Models\Change\ChangeAssetOrderChangeBuilder\of
static of()
Definition
ChangeAssetOrderChangeBuilder.php:179
Commercetools\History\Models\Change\ChangeAssetOrderChangeBuilder\withChange
withChange(?string $change)
Definition
ChangeAssetOrderChangeBuilder.php:116
Commercetools\History\Models\Change\ChangeAssetOrderChangeBuilder\withCatalogData
withCatalogData(?string $catalogData)
Definition
ChangeAssetOrderChangeBuilder.php:149
Commercetools\History\Models\Change\ChangeAssetOrderChangeBuilder\withVariant
withVariant(?string $variant)
Definition
ChangeAssetOrderChangeBuilder.php:160
Commercetools\History\Models\Change\ChangeAssetOrderChangeBuilder\build
build()
Definition
ChangeAssetOrderChangeBuilder.php:168
Commercetools\History\Models\Change\ChangeAssetOrderChangeBuilder\getVariant
getVariant()
Definition
ChangeAssetOrderChangeBuilder.php:107
Commercetools\History\Models\Change\ChangeAssetOrderChangeBuilder\withNextValue
withNextValue(?LocalizedStringCollection $nextValue)
Definition
ChangeAssetOrderChangeBuilder.php:138
Commercetools\History\Models\Change\ChangeAssetOrderChangeBuilder\getNextValue
getNextValue()
Definition
ChangeAssetOrderChangeBuilder.php:80
Commercetools\History\Models\Change\ChangeAssetOrderChangeModel
Definition
ChangeAssetOrderChangeModel.php:22
Commercetools\History\Models\Common\LocalizedStringCollection
Definition
LocalizedStringCollection.php:22
Commercetools\Base\Builder
Definition
Builder.php:16
Commercetools\Base\JsonObject
Definition
JsonObject.php:15
Commercetools\History\Models\Change\ChangeAssetOrderChange
Definition
ChangeAssetOrderChange.php:16
Commercetools\History\Models\Change
Definition
AddAddressChange.php:9
Generated by
1.9.8