commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-history
src
Models
Change
TransitionLineItemStateChangeBuilder.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\ItemStateCollection
;
18
22
final
class
TransitionLineItemStateChangeBuilder
implements
Builder
23
{
28
private
$change;
29
34
private
$previousValue;
35
40
private
$nextValue;
41
46
private
$lineItemId;
47
52
private
$stateId;
53
58
public
function
getChange
()
59
{
60
return
$this->change;
61
}
62
69
public
function
getPreviousValue
()
70
{
71
return
$this->previousValue;
72
}
73
80
public
function
getNextValue
()
81
{
82
return
$this->nextValue;
83
}
84
91
public
function
getLineItemId
()
92
{
93
return
$this->lineItemId;
94
}
95
102
public
function
getStateId
()
103
{
104
return
$this->stateId;
105
}
106
111
public
function
withChange
(?
string
$change)
112
{
113
$this->change = $change;
114
115
return
$this;
116
}
117
122
public
function
withPreviousValue
(?
ItemStateCollection
$previousValue)
123
{
124
$this->previousValue = $previousValue;
125
126
return
$this;
127
}
128
133
public
function
withNextValue
(?
ItemStateCollection
$nextValue)
134
{
135
$this->nextValue = $nextValue;
136
137
return
$this;
138
}
139
144
public
function
withLineItemId
(?
string
$lineItemId)
145
{
146
$this->lineItemId = $lineItemId;
147
148
return
$this;
149
}
150
155
public
function
withStateId
(?
string
$stateId)
156
{
157
$this->stateId = $stateId;
158
159
return
$this;
160
}
161
162
163
public
function
build
():
TransitionLineItemStateChange
164
{
165
return
new
TransitionLineItemStateChangeModel
(
166
$this->change,
167
$this->previousValue,
168
$this->nextValue,
169
$this->lineItemId,
170
$this->stateId
171
);
172
}
173
174
public
static
function
of
():
TransitionLineItemStateChangeBuilder
175
{
176
return
new
self
();
177
}
178
}
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\TransitionLineItemStateChangeBuilder
Definition:
TransitionLineItemStateChangeBuilder.php:23
Commercetools\History\Models\Change\TransitionLineItemStateChangeBuilder\withPreviousValue
withPreviousValue(?ItemStateCollection $previousValue)
Definition:
TransitionLineItemStateChangeBuilder.php:122
Commercetools\History\Models\Change\TransitionLineItemStateChangeBuilder\getStateId
getStateId()
Definition:
TransitionLineItemStateChangeBuilder.php:102
Commercetools\History\Models\Change\TransitionLineItemStateChangeBuilder\getPreviousValue
getPreviousValue()
Definition:
TransitionLineItemStateChangeBuilder.php:69
Commercetools\History\Models\Change\TransitionLineItemStateChangeBuilder\withChange
withChange(?string $change)
Definition:
TransitionLineItemStateChangeBuilder.php:111
Commercetools\History\Models\Change\TransitionLineItemStateChangeBuilder\of
static of()
Definition:
TransitionLineItemStateChangeBuilder.php:174
Commercetools\History\Models\Change\TransitionLineItemStateChangeBuilder\withNextValue
withNextValue(?ItemStateCollection $nextValue)
Definition:
TransitionLineItemStateChangeBuilder.php:133
Commercetools\History\Models\Change\TransitionLineItemStateChangeBuilder\getNextValue
getNextValue()
Definition:
TransitionLineItemStateChangeBuilder.php:80
Commercetools\History\Models\Change\TransitionLineItemStateChangeBuilder\withLineItemId
withLineItemId(?string $lineItemId)
Definition:
TransitionLineItemStateChangeBuilder.php:144
Commercetools\History\Models\Change\TransitionLineItemStateChangeBuilder\getLineItemId
getLineItemId()
Definition:
TransitionLineItemStateChangeBuilder.php:91
Commercetools\History\Models\Change\TransitionLineItemStateChangeBuilder\build
build()
Definition:
TransitionLineItemStateChangeBuilder.php:163
Commercetools\History\Models\Change\TransitionLineItemStateChangeBuilder\getChange
getChange()
Definition:
TransitionLineItemStateChangeBuilder.php:58
Commercetools\History\Models\Change\TransitionLineItemStateChangeBuilder\withStateId
withStateId(?string $stateId)
Definition:
TransitionLineItemStateChangeBuilder.php:155
Commercetools\History\Models\Change\TransitionLineItemStateChangeModel
Definition:
TransitionLineItemStateChangeModel.php:22
Commercetools\History\Models\Common\ItemStateCollection
Definition:
ItemStateCollection.php:22
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\History\Models\Change\TransitionLineItemStateChange
Definition:
TransitionLineItemStateChange.php:16
Commercetools\History\Models\Change
Definition:
AddAddressChange.php:9
Generated by
1.9.1