commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-history
src
Models
Change
ChangeAssetOrderChangeBuilder.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\LocalizedStringCollection
;
18
22
final
class
ChangeAssetOrderChangeBuilder
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
(?
LocalizedStringCollection
$previousValue)
89
{
90
$this->previousValue = $previousValue;
91
92
return
$this;
93
}
94
99
public
function
withNextValue
(?
LocalizedStringCollection
$nextValue)
100
{
101
$this->nextValue = $nextValue;
102
103
return
$this;
104
}
105
106
107
public
function
build
():
ChangeAssetOrderChange
108
{
109
return
new
ChangeAssetOrderChangeModel
(
110
$this->change,
111
$this->previousValue,
112
$this->nextValue
113
);
114
}
115
116
public
static
function
of
():
ChangeAssetOrderChangeBuilder
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\ChangeAssetOrderChangeBuilder
Definition:
ChangeAssetOrderChangeBuilder.php:23
Commercetools\History\Models\Change\ChangeAssetOrderChangeBuilder\withPreviousValue
withPreviousValue(?LocalizedStringCollection $previousValue)
Definition:
ChangeAssetOrderChangeBuilder.php:88
Commercetools\History\Models\Change\ChangeAssetOrderChangeBuilder\getPreviousValue
getPreviousValue()
Definition:
ChangeAssetOrderChangeBuilder.php:57
Commercetools\History\Models\Change\ChangeAssetOrderChangeBuilder\getChange
getChange()
Definition:
ChangeAssetOrderChangeBuilder.php:46
Commercetools\History\Models\Change\ChangeAssetOrderChangeBuilder\of
static of()
Definition:
ChangeAssetOrderChangeBuilder.php:116
Commercetools\History\Models\Change\ChangeAssetOrderChangeBuilder\withChange
withChange(?string $change)
Definition:
ChangeAssetOrderChangeBuilder.php:77
Commercetools\History\Models\Change\ChangeAssetOrderChangeBuilder\build
build()
Definition:
ChangeAssetOrderChangeBuilder.php:107
Commercetools\History\Models\Change\ChangeAssetOrderChangeBuilder\withNextValue
withNextValue(?LocalizedStringCollection $nextValue)
Definition:
ChangeAssetOrderChangeBuilder.php:99
Commercetools\History\Models\Change\ChangeAssetOrderChangeBuilder\getNextValue
getNextValue()
Definition:
ChangeAssetOrderChangeBuilder.php:68
Commercetools\History\Models\Change\ChangeAssetOrderChangeModel
Definition:
ChangeAssetOrderChangeModel.php:22
Commercetools\History\Models\Common\LocalizedStringCollection
Definition:
LocalizedStringCollection.php:22
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\History\Models\Change\ChangeAssetOrderChange
Definition:
ChangeAssetOrderChange.php:16
Commercetools\History\Models\Change
Definition:
AddAddressChange.php:9
Generated by
1.9.1