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
SetPriceKeyChangeBuilder.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
SetPriceKeyChangeBuilder
implements
Builder
22
{
27
private
$change;
28
33
private
$catalogData;
34
39
private
$variant;
40
45
private
$priceId;
46
51
private
$previousValue;
52
57
private
$nextValue;
58
63
public
function
getChange
()
64
{
65
return
$this->change;
66
}
67
78
public
function
getCatalogData
()
79
{
80
return
$this->catalogData;
81
}
82
90
public
function
getVariant
()
91
{
92
return
$this->variant;
93
}
94
101
public
function
getPriceId
()
102
{
103
return
$this->priceId;
104
}
105
112
public
function
getPreviousValue
()
113
{
114
return
$this->previousValue;
115
}
116
123
public
function
getNextValue
()
124
{
125
return
$this->nextValue;
126
}
127
132
public
function
withChange
(?
string
$change)
133
{
134
$this->change = $change;
135
136
return
$this;
137
}
138
143
public
function
withCatalogData
(?
string
$catalogData)
144
{
145
$this->catalogData = $catalogData;
146
147
return
$this;
148
}
149
154
public
function
withVariant
(?
string
$variant)
155
{
156
$this->variant = $variant;
157
158
return
$this;
159
}
160
165
public
function
withPriceId
(?
string
$priceId)
166
{
167
$this->priceId = $priceId;
168
169
return
$this;
170
}
171
176
public
function
withPreviousValue
(?
string
$previousValue)
177
{
178
$this->previousValue = $previousValue;
179
180
return
$this;
181
}
182
187
public
function
withNextValue
(?
string
$nextValue)
188
{
189
$this->nextValue = $nextValue;
190
191
return
$this;
192
}
193
194
195
public
function
build
():
SetPriceKeyChange
196
{
197
return
new
SetPriceKeyChangeModel
(
198
$this->change,
199
$this->catalogData,
200
$this->variant,
201
$this->priceId,
202
$this->previousValue,
203
$this->nextValue
204
);
205
}
206
207
public
static
function
of
():
SetPriceKeyChangeBuilder
208
{
209
return
new
self
();
210
}
211
}
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\SetPriceKeyChangeBuilder
Definition
SetPriceKeyChangeBuilder.php:22
Commercetools\History\Models\Change\SetPriceKeyChangeBuilder\build
build()
Definition
SetPriceKeyChangeBuilder.php:195
Commercetools\History\Models\Change\SetPriceKeyChangeBuilder\withPriceId
withPriceId(?string $priceId)
Definition
SetPriceKeyChangeBuilder.php:165
Commercetools\History\Models\Change\SetPriceKeyChangeBuilder\getPriceId
getPriceId()
Definition
SetPriceKeyChangeBuilder.php:101
Commercetools\History\Models\Change\SetPriceKeyChangeBuilder\getCatalogData
getCatalogData()
Definition
SetPriceKeyChangeBuilder.php:78
Commercetools\History\Models\Change\SetPriceKeyChangeBuilder\withVariant
withVariant(?string $variant)
Definition
SetPriceKeyChangeBuilder.php:154
Commercetools\History\Models\Change\SetPriceKeyChangeBuilder\getVariant
getVariant()
Definition
SetPriceKeyChangeBuilder.php:90
Commercetools\History\Models\Change\SetPriceKeyChangeBuilder\withChange
withChange(?string $change)
Definition
SetPriceKeyChangeBuilder.php:132
Commercetools\History\Models\Change\SetPriceKeyChangeBuilder\getChange
getChange()
Definition
SetPriceKeyChangeBuilder.php:63
Commercetools\History\Models\Change\SetPriceKeyChangeBuilder\getNextValue
getNextValue()
Definition
SetPriceKeyChangeBuilder.php:123
Commercetools\History\Models\Change\SetPriceKeyChangeBuilder\withPreviousValue
withPreviousValue(?string $previousValue)
Definition
SetPriceKeyChangeBuilder.php:176
Commercetools\History\Models\Change\SetPriceKeyChangeBuilder\of
static of()
Definition
SetPriceKeyChangeBuilder.php:207
Commercetools\History\Models\Change\SetPriceKeyChangeBuilder\withNextValue
withNextValue(?string $nextValue)
Definition
SetPriceKeyChangeBuilder.php:187
Commercetools\History\Models\Change\SetPriceKeyChangeBuilder\withCatalogData
withCatalogData(?string $catalogData)
Definition
SetPriceKeyChangeBuilder.php:143
Commercetools\History\Models\Change\SetPriceKeyChangeBuilder\getPreviousValue
getPreviousValue()
Definition
SetPriceKeyChangeBuilder.php:112
Commercetools\History\Models\Change\SetPriceKeyChangeModel
Definition
SetPriceKeyChangeModel.php:21
Commercetools\Base\Builder
Definition
Builder.php:16
Commercetools\Base\JsonObject
Definition
JsonObject.php:15
Commercetools\History\Models\Change\SetPriceKeyChange
Definition
SetPriceKeyChange.php:15
Commercetools\History\Models\Change
Definition
AddAddressChange.php:9
Generated by
1.9.8