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
SetCountriesChangeBuilder.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\StoreCountryCollection
;
18
22
final
class
SetCountriesChangeBuilder
implements
Builder
23
{
28
private
$change;
29
34
private
$previousValue;
35
40
private
$nextValue;
41
46
private
$addedItems;
47
52
private
$removedItems;
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
91
public
function
getAddedItems
()
92
{
93
return
$this->addedItems;
94
}
95
102
public
function
getRemovedItems
()
103
{
104
return
$this->removedItems;
105
}
106
111
public
function
withChange
(?
string
$change)
112
{
113
$this->change = $change;
114
115
return
$this;
116
}
117
122
public
function
withPreviousValue
(?
StoreCountryCollection
$previousValue)
123
{
124
$this->previousValue = $previousValue;
125
126
return
$this;
127
}
128
133
public
function
withNextValue
(?
StoreCountryCollection
$nextValue)
134
{
135
$this->nextValue = $nextValue;
136
137
return
$this;
138
}
139
144
public
function
withAddedItems
(?
StoreCountryCollection
$addedItems)
145
{
146
$this->addedItems = $addedItems;
147
148
return
$this;
149
}
150
155
public
function
withRemovedItems
(?
StoreCountryCollection
$removedItems)
156
{
157
$this->removedItems = $removedItems;
158
159
return
$this;
160
}
161
162
163
public
function
build
():
SetCountriesChange
164
{
165
return
new
SetCountriesChangeModel
(
166
$this->change,
167
$this->previousValue,
168
$this->nextValue,
169
$this->addedItems,
170
$this->removedItems
171
);
172
}
173
174
public
static
function
of
():
SetCountriesChangeBuilder
175
{
176
return
new
self
();
177
}
178
}
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\SetCountriesChangeBuilder
Definition
SetCountriesChangeBuilder.php:23
Commercetools\History\Models\Change\SetCountriesChangeBuilder\withAddedItems
withAddedItems(?StoreCountryCollection $addedItems)
Definition
SetCountriesChangeBuilder.php:144
Commercetools\History\Models\Change\SetCountriesChangeBuilder\getRemovedItems
getRemovedItems()
Definition
SetCountriesChangeBuilder.php:102
Commercetools\History\Models\Change\SetCountriesChangeBuilder\getChange
getChange()
Definition
SetCountriesChangeBuilder.php:58
Commercetools\History\Models\Change\SetCountriesChangeBuilder\getAddedItems
getAddedItems()
Definition
SetCountriesChangeBuilder.php:91
Commercetools\History\Models\Change\SetCountriesChangeBuilder\withChange
withChange(?string $change)
Definition
SetCountriesChangeBuilder.php:111
Commercetools\History\Models\Change\SetCountriesChangeBuilder\withRemovedItems
withRemovedItems(?StoreCountryCollection $removedItems)
Definition
SetCountriesChangeBuilder.php:155
Commercetools\History\Models\Change\SetCountriesChangeBuilder\build
build()
Definition
SetCountriesChangeBuilder.php:163
Commercetools\History\Models\Change\SetCountriesChangeBuilder\of
static of()
Definition
SetCountriesChangeBuilder.php:174
Commercetools\History\Models\Change\SetCountriesChangeBuilder\getNextValue
getNextValue()
Definition
SetCountriesChangeBuilder.php:80
Commercetools\History\Models\Change\SetCountriesChangeBuilder\withPreviousValue
withPreviousValue(?StoreCountryCollection $previousValue)
Definition
SetCountriesChangeBuilder.php:122
Commercetools\History\Models\Change\SetCountriesChangeBuilder\withNextValue
withNextValue(?StoreCountryCollection $nextValue)
Definition
SetCountriesChangeBuilder.php:133
Commercetools\History\Models\Change\SetCountriesChangeBuilder\getPreviousValue
getPreviousValue()
Definition
SetCountriesChangeBuilder.php:69
Commercetools\History\Models\Change\SetCountriesChangeModel
Definition
SetCountriesChangeModel.php:22
Commercetools\History\Models\Common\StoreCountryCollection
Definition
StoreCountryCollection.php:22
Commercetools\Base\Builder
Definition
Builder.php:16
Commercetools\Base\JsonObject
Definition
JsonObject.php:15
Commercetools\History\Models\Change\SetCountriesChange
Definition
SetCountriesChange.php:16
Commercetools\History\Models\Change
Definition
AddAddressChange.php:9
Generated by
1.9.8