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
SetImageLabelChangeBuilder.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\Image
;
18
use
Commercetools\History\Models\Common\ImageBuilder
;
19
23
final
class
SetImageLabelChangeBuilder
implements
Builder
24
{
29
private
$change;
30
35
private
$previousValue;
36
41
private
$nextValue;
42
47
private
$catalogData;
48
53
private
$variant;
54
59
public
function
getChange
()
60
{
61
return
$this->change;
62
}
63
70
public
function
getPreviousValue
()
71
{
72
return
$this->previousValue instanceof
ImageBuilder
? $this->previousValue->
build
() : $this->previousValue;
73
}
74
81
public
function
getNextValue
()
82
{
83
return
$this->nextValue instanceof
ImageBuilder
? $this->nextValue->
build
() : $this->nextValue;
84
}
85
96
public
function
getCatalogData
()
97
{
98
return
$this->catalogData;
99
}
100
108
public
function
getVariant
()
109
{
110
return
$this->variant;
111
}
112
117
public
function
withChange
(?
string
$change)
118
{
119
$this->change = $change;
120
121
return
$this;
122
}
123
128
public
function
withPreviousValue
(?
Image
$previousValue)
129
{
130
$this->previousValue = $previousValue;
131
132
return
$this;
133
}
134
139
public
function
withNextValue
(?
Image
$nextValue)
140
{
141
$this->nextValue = $nextValue;
142
143
return
$this;
144
}
145
150
public
function
withCatalogData
(?
string
$catalogData)
151
{
152
$this->catalogData = $catalogData;
153
154
return
$this;
155
}
156
161
public
function
withVariant
(?
string
$variant)
162
{
163
$this->variant = $variant;
164
165
return
$this;
166
}
167
172
public
function
withPreviousValueBuilder
(?
ImageBuilder
$previousValue)
173
{
174
$this->previousValue = $previousValue;
175
176
return
$this;
177
}
178
183
public
function
withNextValueBuilder
(?
ImageBuilder
$nextValue)
184
{
185
$this->nextValue = $nextValue;
186
187
return
$this;
188
}
189
190
public
function
build
():
SetImageLabelChange
191
{
192
return
new
SetImageLabelChangeModel
(
193
$this->change,
194
$this->previousValue instanceof
ImageBuilder
? $this->previousValue->
build
() : $this->previousValue,
195
$this->nextValue instanceof
ImageBuilder
? $this->nextValue->
build
() : $this->nextValue,
196
$this->catalogData,
197
$this->variant
198
);
199
}
200
201
public
static
function
of
():
SetImageLabelChangeBuilder
202
{
203
return
new
self
();
204
}
205
}
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\SetImageLabelChangeBuilder
Definition
SetImageLabelChangeBuilder.php:24
Commercetools\History\Models\Change\SetImageLabelChangeBuilder\withVariant
withVariant(?string $variant)
Definition
SetImageLabelChangeBuilder.php:161
Commercetools\History\Models\Change\SetImageLabelChangeBuilder\getChange
getChange()
Definition
SetImageLabelChangeBuilder.php:59
Commercetools\History\Models\Change\SetImageLabelChangeBuilder\getCatalogData
getCatalogData()
Definition
SetImageLabelChangeBuilder.php:96
Commercetools\History\Models\Change\SetImageLabelChangeBuilder\withNextValue
withNextValue(?Image $nextValue)
Definition
SetImageLabelChangeBuilder.php:139
Commercetools\History\Models\Change\SetImageLabelChangeBuilder\getVariant
getVariant()
Definition
SetImageLabelChangeBuilder.php:108
Commercetools\History\Models\Change\SetImageLabelChangeBuilder\withCatalogData
withCatalogData(?string $catalogData)
Definition
SetImageLabelChangeBuilder.php:150
Commercetools\History\Models\Change\SetImageLabelChangeBuilder\getNextValue
getNextValue()
Definition
SetImageLabelChangeBuilder.php:81
Commercetools\History\Models\Change\SetImageLabelChangeBuilder\getPreviousValue
getPreviousValue()
Definition
SetImageLabelChangeBuilder.php:70
Commercetools\History\Models\Change\SetImageLabelChangeBuilder\withChange
withChange(?string $change)
Definition
SetImageLabelChangeBuilder.php:117
Commercetools\History\Models\Change\SetImageLabelChangeBuilder\withPreviousValue
withPreviousValue(?Image $previousValue)
Definition
SetImageLabelChangeBuilder.php:128
Commercetools\History\Models\Change\SetImageLabelChangeBuilder\build
build()
Definition
SetImageLabelChangeBuilder.php:190
Commercetools\History\Models\Change\SetImageLabelChangeBuilder\withNextValueBuilder
withNextValueBuilder(?ImageBuilder $nextValue)
Definition
SetImageLabelChangeBuilder.php:183
Commercetools\History\Models\Change\SetImageLabelChangeBuilder\withPreviousValueBuilder
withPreviousValueBuilder(?ImageBuilder $previousValue)
Definition
SetImageLabelChangeBuilder.php:172
Commercetools\History\Models\Change\SetImageLabelChangeBuilder\of
static of()
Definition
SetImageLabelChangeBuilder.php:201
Commercetools\History\Models\Change\SetImageLabelChangeModel
Definition
SetImageLabelChangeModel.php:23
Commercetools\History\Models\Common\ImageBuilder
Definition
ImageBuilder.php:22
Commercetools\History\Models\Common\ImageBuilder\build
build()
Definition
ImageBuilder.php:118
Commercetools\Base\Builder
Definition
Builder.php:16
Commercetools\Base\JsonObject
Definition
JsonObject.php:15
Commercetools\History\Models\Change\SetImageLabelChange
Definition
SetImageLabelChange.php:16
Commercetools\History\Models\Common\Image
Definition
Image.php:15
Commercetools\History\Models\Change
Definition
AddAddressChange.php:9
Generated by
1.9.8