commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-history
src
Models
Change
SetStoresChangeBuilder.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\ReferenceCollection
;
18
22
final
class
SetStoresChangeBuilder
implements
Builder
23
{
28
private
$change;
29
34
private
$previousValue;
35
40
private
$nextValue;
41
46
public
function
getChange
()
47
{
48
return
$this->change;
49
}
50
57
public
function
getPreviousValue
()
58
{
59
return
$this->previousValue;
60
}
61
68
public
function
getNextValue
()
69
{
70
return
$this->nextValue;
71
}
72
77
public
function
withChange
(?
string
$change)
78
{
79
$this->change = $change;
80
81
return
$this;
82
}
83
88
public
function
withPreviousValue
(?
ReferenceCollection
$previousValue)
89
{
90
$this->previousValue = $previousValue;
91
92
return
$this;
93
}
94
99
public
function
withNextValue
(?
ReferenceCollection
$nextValue)
100
{
101
$this->nextValue = $nextValue;
102
103
return
$this;
104
}
105
106
107
public
function
build
():
SetStoresChange
108
{
109
return
new
SetStoresChangeModel
(
110
$this->change,
111
$this->previousValue,
112
$this->nextValue
113
);
114
}
115
116
public
static
function
of
():
SetStoresChangeBuilder
117
{
118
return
new
self
();
119
}
120
}
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\SetStoresChangeBuilder
Definition:
SetStoresChangeBuilder.php:23
Commercetools\History\Models\Change\SetStoresChangeBuilder\withNextValue
withNextValue(?ReferenceCollection $nextValue)
Definition:
SetStoresChangeBuilder.php:99
Commercetools\History\Models\Change\SetStoresChangeBuilder\withPreviousValue
withPreviousValue(?ReferenceCollection $previousValue)
Definition:
SetStoresChangeBuilder.php:88
Commercetools\History\Models\Change\SetStoresChangeBuilder\withChange
withChange(?string $change)
Definition:
SetStoresChangeBuilder.php:77
Commercetools\History\Models\Change\SetStoresChangeBuilder\getNextValue
getNextValue()
Definition:
SetStoresChangeBuilder.php:68
Commercetools\History\Models\Change\SetStoresChangeBuilder\getPreviousValue
getPreviousValue()
Definition:
SetStoresChangeBuilder.php:57
Commercetools\History\Models\Change\SetStoresChangeBuilder\build
build()
Definition:
SetStoresChangeBuilder.php:107
Commercetools\History\Models\Change\SetStoresChangeBuilder\getChange
getChange()
Definition:
SetStoresChangeBuilder.php:46
Commercetools\History\Models\Change\SetStoresChangeBuilder\of
static of()
Definition:
SetStoresChangeBuilder.php:116
Commercetools\History\Models\Change\SetStoresChangeModel
Definition:
SetStoresChangeModel.php:22
Commercetools\History\Models\Common\ReferenceCollection
Definition:
ReferenceCollection.php:22
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\History\Models\Change\SetStoresChange
Definition:
SetStoresChange.php:16
Commercetools\History\Models\Change
Definition:
AddAddressChange.php:9
Generated by
1.9.1