commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-history
src
Models
Change
SetSupplyChannelsChangeBuilder.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
SetSupplyChannelsChangeBuilder
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
():
SetSupplyChannelsChange
108
{
109
return
new
SetSupplyChannelsChangeModel
(
110
$this->change,
111
$this->previousValue,
112
$this->nextValue
113
);
114
}
115
116
public
static
function
of
():
SetSupplyChannelsChangeBuilder
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\SetSupplyChannelsChangeBuilder
Definition:
SetSupplyChannelsChangeBuilder.php:23
Commercetools\History\Models\Change\SetSupplyChannelsChangeBuilder\getChange
getChange()
Definition:
SetSupplyChannelsChangeBuilder.php:46
Commercetools\History\Models\Change\SetSupplyChannelsChangeBuilder\of
static of()
Definition:
SetSupplyChannelsChangeBuilder.php:116
Commercetools\History\Models\Change\SetSupplyChannelsChangeBuilder\withNextValue
withNextValue(?ReferenceCollection $nextValue)
Definition:
SetSupplyChannelsChangeBuilder.php:99
Commercetools\History\Models\Change\SetSupplyChannelsChangeBuilder\withChange
withChange(?string $change)
Definition:
SetSupplyChannelsChangeBuilder.php:77
Commercetools\History\Models\Change\SetSupplyChannelsChangeBuilder\getNextValue
getNextValue()
Definition:
SetSupplyChannelsChangeBuilder.php:68
Commercetools\History\Models\Change\SetSupplyChannelsChangeBuilder\withPreviousValue
withPreviousValue(?ReferenceCollection $previousValue)
Definition:
SetSupplyChannelsChangeBuilder.php:88
Commercetools\History\Models\Change\SetSupplyChannelsChangeBuilder\getPreviousValue
getPreviousValue()
Definition:
SetSupplyChannelsChangeBuilder.php:57
Commercetools\History\Models\Change\SetSupplyChannelsChangeBuilder\build
build()
Definition:
SetSupplyChannelsChangeBuilder.php:107
Commercetools\History\Models\Change\SetSupplyChannelsChangeModel
Definition:
SetSupplyChannelsChangeModel.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\SetSupplyChannelsChange
Definition:
SetSupplyChannelsChange.php:16
Commercetools\History\Models\Change
Definition:
AddAddressChange.php:9
Generated by
1.9.1