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
ChangeAssetNameChangeBuilder.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\ChangeValue\AssetChangeValue
;
18
use
Commercetools\History\Models\ChangeValue\AssetChangeValueBuilder
;
19
use
Commercetools\History\Models\Common\LocalizedString
;
20
use
Commercetools\History\Models\Common\LocalizedStringBuilder
;
21
25
final
class
ChangeAssetNameChangeBuilder
implements
Builder
26
{
31
private
$change;
32
37
private
$previousValue;
38
43
private
$nextValue;
44
49
private
$asset;
50
55
private
$catalogData;
56
61
private
$variant;
62
67
public
function
getChange
()
68
{
69
return
$this->change;
70
}
71
78
public
function
getPreviousValue
()
79
{
80
return
$this->previousValue instanceof
LocalizedStringBuilder
? $this->previousValue->
build
() : $this->previousValue;
81
}
82
89
public
function
getNextValue
()
90
{
91
return
$this->nextValue instanceof
LocalizedStringBuilder
? $this->nextValue->
build
() : $this->nextValue;
92
}
93
100
public
function
getAsset
()
101
{
102
return
$this->asset instanceof
AssetChangeValueBuilder
? $this->asset->
build
() : $this->asset;
103
}
104
115
public
function
getCatalogData
()
116
{
117
return
$this->catalogData;
118
}
119
127
public
function
getVariant
()
128
{
129
return
$this->variant;
130
}
131
136
public
function
withChange
(?
string
$change)
137
{
138
$this->change = $change;
139
140
return
$this;
141
}
142
147
public
function
withPreviousValue
(?
LocalizedString
$previousValue)
148
{
149
$this->previousValue = $previousValue;
150
151
return
$this;
152
}
153
158
public
function
withNextValue
(?
LocalizedString
$nextValue)
159
{
160
$this->nextValue = $nextValue;
161
162
return
$this;
163
}
164
169
public
function
withAsset
(?
AssetChangeValue
$asset)
170
{
171
$this->asset = $asset;
172
173
return
$this;
174
}
175
180
public
function
withCatalogData
(?
string
$catalogData)
181
{
182
$this->catalogData = $catalogData;
183
184
return
$this;
185
}
186
191
public
function
withVariant
(?
string
$variant)
192
{
193
$this->variant = $variant;
194
195
return
$this;
196
}
197
202
public
function
withPreviousValueBuilder
(?
LocalizedStringBuilder
$previousValue)
203
{
204
$this->previousValue = $previousValue;
205
206
return
$this;
207
}
208
213
public
function
withNextValueBuilder
(?
LocalizedStringBuilder
$nextValue)
214
{
215
$this->nextValue = $nextValue;
216
217
return
$this;
218
}
219
224
public
function
withAssetBuilder
(?
AssetChangeValueBuilder
$asset)
225
{
226
$this->asset = $asset;
227
228
return
$this;
229
}
230
231
public
function
build
():
ChangeAssetNameChange
232
{
233
return
new
ChangeAssetNameChangeModel
(
234
$this->change,
235
$this->previousValue instanceof
LocalizedStringBuilder
? $this->previousValue->
build
() : $this->previousValue,
236
$this->nextValue instanceof
LocalizedStringBuilder
? $this->nextValue->
build
() : $this->nextValue,
237
$this->asset instanceof
AssetChangeValueBuilder
? $this->asset->
build
() : $this->asset,
238
$this->catalogData,
239
$this->variant
240
);
241
}
242
243
public
static
function
of
():
ChangeAssetNameChangeBuilder
244
{
245
return
new
self
();
246
}
247
}
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\ChangeAssetNameChangeBuilder
Definition
ChangeAssetNameChangeBuilder.php:26
Commercetools\History\Models\Change\ChangeAssetNameChangeBuilder\getCatalogData
getCatalogData()
Definition
ChangeAssetNameChangeBuilder.php:115
Commercetools\History\Models\Change\ChangeAssetNameChangeBuilder\withAssetBuilder
withAssetBuilder(?AssetChangeValueBuilder $asset)
Definition
ChangeAssetNameChangeBuilder.php:224
Commercetools\History\Models\Change\ChangeAssetNameChangeBuilder\withAsset
withAsset(?AssetChangeValue $asset)
Definition
ChangeAssetNameChangeBuilder.php:169
Commercetools\History\Models\Change\ChangeAssetNameChangeBuilder\getChange
getChange()
Definition
ChangeAssetNameChangeBuilder.php:67
Commercetools\History\Models\Change\ChangeAssetNameChangeBuilder\withNextValueBuilder
withNextValueBuilder(?LocalizedStringBuilder $nextValue)
Definition
ChangeAssetNameChangeBuilder.php:213
Commercetools\History\Models\Change\ChangeAssetNameChangeBuilder\withPreviousValueBuilder
withPreviousValueBuilder(?LocalizedStringBuilder $previousValue)
Definition
ChangeAssetNameChangeBuilder.php:202
Commercetools\History\Models\Change\ChangeAssetNameChangeBuilder\withChange
withChange(?string $change)
Definition
ChangeAssetNameChangeBuilder.php:136
Commercetools\History\Models\Change\ChangeAssetNameChangeBuilder\withVariant
withVariant(?string $variant)
Definition
ChangeAssetNameChangeBuilder.php:191
Commercetools\History\Models\Change\ChangeAssetNameChangeBuilder\withPreviousValue
withPreviousValue(?LocalizedString $previousValue)
Definition
ChangeAssetNameChangeBuilder.php:147
Commercetools\History\Models\Change\ChangeAssetNameChangeBuilder\getAsset
getAsset()
Definition
ChangeAssetNameChangeBuilder.php:100
Commercetools\History\Models\Change\ChangeAssetNameChangeBuilder\withCatalogData
withCatalogData(?string $catalogData)
Definition
ChangeAssetNameChangeBuilder.php:180
Commercetools\History\Models\Change\ChangeAssetNameChangeBuilder\getNextValue
getNextValue()
Definition
ChangeAssetNameChangeBuilder.php:89
Commercetools\History\Models\Change\ChangeAssetNameChangeBuilder\withNextValue
withNextValue(?LocalizedString $nextValue)
Definition
ChangeAssetNameChangeBuilder.php:158
Commercetools\History\Models\Change\ChangeAssetNameChangeBuilder\getVariant
getVariant()
Definition
ChangeAssetNameChangeBuilder.php:127
Commercetools\History\Models\Change\ChangeAssetNameChangeBuilder\of
static of()
Definition
ChangeAssetNameChangeBuilder.php:243
Commercetools\History\Models\Change\ChangeAssetNameChangeBuilder\build
build()
Definition
ChangeAssetNameChangeBuilder.php:231
Commercetools\History\Models\Change\ChangeAssetNameChangeBuilder\getPreviousValue
getPreviousValue()
Definition
ChangeAssetNameChangeBuilder.php:78
Commercetools\History\Models\Change\ChangeAssetNameChangeModel
Definition
ChangeAssetNameChangeModel.php:25
Commercetools\History\Models\ChangeValue\AssetChangeValueBuilder
Definition
AssetChangeValueBuilder.php:24
Commercetools\History\Models\ChangeValue\AssetChangeValueBuilder\build
build()
Definition
AssetChangeValueBuilder.php:92
Commercetools\History\Models\Common\LocalizedStringBuilder
Definition
LocalizedStringBuilder.php:20
Commercetools\History\Models\Common\LocalizedStringBuilder\build
build()
Definition
LocalizedStringBuilder.php:42
Commercetools\Base\Builder
Definition
Builder.php:16
Commercetools\Base\JsonObject
Definition
JsonObject.php:15
Commercetools\History\Models\Change\ChangeAssetNameChange
Definition
ChangeAssetNameChange.php:17
Commercetools\History\Models\ChangeValue\AssetChangeValue
Definition
AssetChangeValue.php:16
Commercetools\History\Models\Common\LocalizedString
Definition
LocalizedString.php:14
Commercetools\History\Models\Change
Definition
AddAddressChange.php:9
Generated by
1.9.8