commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-history
src
Models
Change
SetPricesChangeBuilder.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\PriceCollection
;
18
22
final
class
SetPricesChangeBuilder
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
94
public
function
getCatalogData
()
95
{
96
return
$this->catalogData;
97
}
98
105
public
function
getVariant
()
106
{
107
return
$this->variant;
108
}
109
114
public
function
withChange
(?
string
$change)
115
{
116
$this->change = $change;
117
118
return
$this;
119
}
120
125
public
function
withPreviousValue
(?
PriceCollection
$previousValue)
126
{
127
$this->previousValue = $previousValue;
128
129
return
$this;
130
}
131
136
public
function
withNextValue
(?
PriceCollection
$nextValue)
137
{
138
$this->nextValue = $nextValue;
139
140
return
$this;
141
}
142
147
public
function
withCatalogData
(?
string
$catalogData)
148
{
149
$this->catalogData = $catalogData;
150
151
return
$this;
152
}
153
158
public
function
withVariant
(?
string
$variant)
159
{
160
$this->variant = $variant;
161
162
return
$this;
163
}
164
165
166
public
function
build
():
SetPricesChange
167
{
168
return
new
SetPricesChangeModel
(
169
$this->change,
170
$this->previousValue,
171
$this->nextValue,
172
$this->catalogData,
173
$this->variant
174
);
175
}
176
177
public
static
function
of
():
SetPricesChangeBuilder
178
{
179
return
new
self
();
180
}
181
}
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\SetPricesChangeBuilder
Definition:
SetPricesChangeBuilder.php:23
Commercetools\History\Models\Change\SetPricesChangeBuilder\getCatalogData
getCatalogData()
Definition:
SetPricesChangeBuilder.php:94
Commercetools\History\Models\Change\SetPricesChangeBuilder\withPreviousValue
withPreviousValue(?PriceCollection $previousValue)
Definition:
SetPricesChangeBuilder.php:125
Commercetools\History\Models\Change\SetPricesChangeBuilder\withNextValue
withNextValue(?PriceCollection $nextValue)
Definition:
SetPricesChangeBuilder.php:136
Commercetools\History\Models\Change\SetPricesChangeBuilder\build
build()
Definition:
SetPricesChangeBuilder.php:166
Commercetools\History\Models\Change\SetPricesChangeBuilder\getPreviousValue
getPreviousValue()
Definition:
SetPricesChangeBuilder.php:69
Commercetools\History\Models\Change\SetPricesChangeBuilder\withCatalogData
withCatalogData(?string $catalogData)
Definition:
SetPricesChangeBuilder.php:147
Commercetools\History\Models\Change\SetPricesChangeBuilder\getChange
getChange()
Definition:
SetPricesChangeBuilder.php:58
Commercetools\History\Models\Change\SetPricesChangeBuilder\of
static of()
Definition:
SetPricesChangeBuilder.php:177
Commercetools\History\Models\Change\SetPricesChangeBuilder\getVariant
getVariant()
Definition:
SetPricesChangeBuilder.php:105
Commercetools\History\Models\Change\SetPricesChangeBuilder\withChange
withChange(?string $change)
Definition:
SetPricesChangeBuilder.php:114
Commercetools\History\Models\Change\SetPricesChangeBuilder\getNextValue
getNextValue()
Definition:
SetPricesChangeBuilder.php:80
Commercetools\History\Models\Change\SetPricesChangeBuilder\withVariant
withVariant(?string $variant)
Definition:
SetPricesChangeBuilder.php:158
Commercetools\History\Models\Change\SetPricesChangeModel
Definition:
SetPricesChangeModel.php:22
Commercetools\History\Models\Common\PriceCollection
Definition:
PriceCollection.php:22
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\History\Models\Change\SetPricesChange
Definition:
SetPricesChange.php:16
Commercetools\History\Models\Change
Definition:
AddAddressChange.php:9
Generated by
1.9.1