commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-history
src
Models
Change
SetDeliveryItemsChangeBuilder.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\DeliveryItemCollection
;
18
22
final
class
SetDeliveryItemsChangeBuilder
implements
Builder
23
{
28
private
$change;
29
34
private
$previousValue;
35
40
private
$nextValue;
41
46
private
$deliveryId;
47
52
public
function
getChange
()
53
{
54
return
$this->change;
55
}
56
63
public
function
getPreviousValue
()
64
{
65
return
$this->previousValue;
66
}
67
74
public
function
getNextValue
()
75
{
76
return
$this->nextValue;
77
}
78
85
public
function
getDeliveryId
()
86
{
87
return
$this->deliveryId;
88
}
89
94
public
function
withChange
(?
string
$change)
95
{
96
$this->change = $change;
97
98
return
$this;
99
}
100
105
public
function
withPreviousValue
(?
DeliveryItemCollection
$previousValue)
106
{
107
$this->previousValue = $previousValue;
108
109
return
$this;
110
}
111
116
public
function
withNextValue
(?
DeliveryItemCollection
$nextValue)
117
{
118
$this->nextValue = $nextValue;
119
120
return
$this;
121
}
122
127
public
function
withDeliveryId
(?
string
$deliveryId)
128
{
129
$this->deliveryId = $deliveryId;
130
131
return
$this;
132
}
133
134
135
public
function
build
():
SetDeliveryItemsChange
136
{
137
return
new
SetDeliveryItemsChangeModel
(
138
$this->change,
139
$this->previousValue,
140
$this->nextValue,
141
$this->deliveryId
142
);
143
}
144
145
public
static
function
of
():
SetDeliveryItemsChangeBuilder
146
{
147
return
new
self
();
148
}
149
}
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\SetDeliveryItemsChangeBuilder
Definition:
SetDeliveryItemsChangeBuilder.php:23
Commercetools\History\Models\Change\SetDeliveryItemsChangeBuilder\getChange
getChange()
Definition:
SetDeliveryItemsChangeBuilder.php:52
Commercetools\History\Models\Change\SetDeliveryItemsChangeBuilder\getPreviousValue
getPreviousValue()
Definition:
SetDeliveryItemsChangeBuilder.php:63
Commercetools\History\Models\Change\SetDeliveryItemsChangeBuilder\of
static of()
Definition:
SetDeliveryItemsChangeBuilder.php:145
Commercetools\History\Models\Change\SetDeliveryItemsChangeBuilder\withDeliveryId
withDeliveryId(?string $deliveryId)
Definition:
SetDeliveryItemsChangeBuilder.php:127
Commercetools\History\Models\Change\SetDeliveryItemsChangeBuilder\build
build()
Definition:
SetDeliveryItemsChangeBuilder.php:135
Commercetools\History\Models\Change\SetDeliveryItemsChangeBuilder\withNextValue
withNextValue(?DeliveryItemCollection $nextValue)
Definition:
SetDeliveryItemsChangeBuilder.php:116
Commercetools\History\Models\Change\SetDeliveryItemsChangeBuilder\getNextValue
getNextValue()
Definition:
SetDeliveryItemsChangeBuilder.php:74
Commercetools\History\Models\Change\SetDeliveryItemsChangeBuilder\withPreviousValue
withPreviousValue(?DeliveryItemCollection $previousValue)
Definition:
SetDeliveryItemsChangeBuilder.php:105
Commercetools\History\Models\Change\SetDeliveryItemsChangeBuilder\withChange
withChange(?string $change)
Definition:
SetDeliveryItemsChangeBuilder.php:94
Commercetools\History\Models\Change\SetDeliveryItemsChangeBuilder\getDeliveryId
getDeliveryId()
Definition:
SetDeliveryItemsChangeBuilder.php:85
Commercetools\History\Models\Change\SetDeliveryItemsChangeModel
Definition:
SetDeliveryItemsChangeModel.php:22
Commercetools\History\Models\Common\DeliveryItemCollection
Definition:
DeliveryItemCollection.php:22
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\History\Models\Change\SetDeliveryItemsChange
Definition:
SetDeliveryItemsChange.php:16
Commercetools\History\Models\Change
Definition:
AddAddressChange.php:9
Generated by
1.9.1