commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-history
src
Models
Change
ChangeQuoteRequestStateChangeBuilder.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
ChangeQuoteRequestStateChangeBuilder
implements
Builder
22
{
27
private
$change;
28
33
private
$previousValue;
34
39
private
$nextValue;
40
45
public
function
getChange
()
46
{
47
return
$this->change;
48
}
49
56
public
function
getPreviousValue
()
57
{
58
return
$this->previousValue;
59
}
60
67
public
function
getNextValue
()
68
{
69
return
$this->nextValue;
70
}
71
76
public
function
withChange
(?
string
$change)
77
{
78
$this->change = $change;
79
80
return
$this;
81
}
82
87
public
function
withPreviousValue
(?
string
$previousValue)
88
{
89
$this->previousValue = $previousValue;
90
91
return
$this;
92
}
93
98
public
function
withNextValue
(?
string
$nextValue)
99
{
100
$this->nextValue = $nextValue;
101
102
return
$this;
103
}
104
105
106
public
function
build
():
ChangeQuoteRequestStateChange
107
{
108
return
new
ChangeQuoteRequestStateChangeModel
(
109
$this->change,
110
$this->previousValue,
111
$this->nextValue
112
);
113
}
114
115
public
static
function
of
():
ChangeQuoteRequestStateChangeBuilder
116
{
117
return
new
self
();
118
}
119
}
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\ChangeQuoteRequestStateChangeBuilder
Definition:
ChangeQuoteRequestStateChangeBuilder.php:22
Commercetools\History\Models\Change\ChangeQuoteRequestStateChangeBuilder\withChange
withChange(?string $change)
Definition:
ChangeQuoteRequestStateChangeBuilder.php:76
Commercetools\History\Models\Change\ChangeQuoteRequestStateChangeBuilder\of
static of()
Definition:
ChangeQuoteRequestStateChangeBuilder.php:115
Commercetools\History\Models\Change\ChangeQuoteRequestStateChangeBuilder\build
build()
Definition:
ChangeQuoteRequestStateChangeBuilder.php:106
Commercetools\History\Models\Change\ChangeQuoteRequestStateChangeBuilder\getPreviousValue
getPreviousValue()
Definition:
ChangeQuoteRequestStateChangeBuilder.php:56
Commercetools\History\Models\Change\ChangeQuoteRequestStateChangeBuilder\getNextValue
getNextValue()
Definition:
ChangeQuoteRequestStateChangeBuilder.php:67
Commercetools\History\Models\Change\ChangeQuoteRequestStateChangeBuilder\getChange
getChange()
Definition:
ChangeQuoteRequestStateChangeBuilder.php:45
Commercetools\History\Models\Change\ChangeQuoteRequestStateChangeBuilder\withPreviousValue
withPreviousValue(?string $previousValue)
Definition:
ChangeQuoteRequestStateChangeBuilder.php:87
Commercetools\History\Models\Change\ChangeQuoteRequestStateChangeBuilder\withNextValue
withNextValue(?string $nextValue)
Definition:
ChangeQuoteRequestStateChangeBuilder.php:98
Commercetools\History\Models\Change\ChangeQuoteRequestStateChangeModel
Definition:
ChangeQuoteRequestStateChangeModel.php:21
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\History\Models\Change\ChangeQuoteRequestStateChange
Definition:
ChangeQuoteRequestStateChange.php:15
Commercetools\History\Models\Change
Definition:
AddAddressChange.php:9
Generated by
1.9.1