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