commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-history
src
Models
Change
AddParcelToDeliveryChangeBuilder.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\Parcel
;
18
use
Commercetools\History\Models\Common\ParcelBuilder
;
19
23
final
class
AddParcelToDeliveryChangeBuilder
implements
Builder
24
{
29
private
$change;
30
35
private
$nextValue;
36
41
private
$deliveryId;
42
47
public
function
getChange
()
48
{
49
return
$this->change;
50
}
51
58
public
function
getNextValue
()
59
{
60
return
$this->nextValue instanceof
ParcelBuilder
? $this->nextValue->
build
() : $this->nextValue;
61
}
62
69
public
function
getDeliveryId
()
70
{
71
return
$this->deliveryId;
72
}
73
78
public
function
withChange
(?
string
$change)
79
{
80
$this->change = $change;
81
82
return
$this;
83
}
84
89
public
function
withNextValue
(?
Parcel
$nextValue)
90
{
91
$this->nextValue = $nextValue;
92
93
return
$this;
94
}
95
100
public
function
withDeliveryId
(?
string
$deliveryId)
101
{
102
$this->deliveryId = $deliveryId;
103
104
return
$this;
105
}
106
111
public
function
withNextValueBuilder
(?
ParcelBuilder
$nextValue)
112
{
113
$this->nextValue = $nextValue;
114
115
return
$this;
116
}
117
118
public
function
build
():
AddParcelToDeliveryChange
119
{
120
return
new
AddParcelToDeliveryChangeModel
(
121
$this->change,
122
$this->nextValue instanceof
ParcelBuilder
? $this->nextValue->
build
() : $this->nextValue,
123
$this->deliveryId
124
);
125
}
126
127
public
static
function
of
():
AddParcelToDeliveryChangeBuilder
128
{
129
return
new
self
();
130
}
131
}
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\AddParcelToDeliveryChangeBuilder
Definition:
AddParcelToDeliveryChangeBuilder.php:24
Commercetools\History\Models\Change\AddParcelToDeliveryChangeBuilder\withChange
withChange(?string $change)
Definition:
AddParcelToDeliveryChangeBuilder.php:78
Commercetools\History\Models\Change\AddParcelToDeliveryChangeBuilder\withNextValueBuilder
withNextValueBuilder(?ParcelBuilder $nextValue)
Definition:
AddParcelToDeliveryChangeBuilder.php:111
Commercetools\History\Models\Change\AddParcelToDeliveryChangeBuilder\of
static of()
Definition:
AddParcelToDeliveryChangeBuilder.php:127
Commercetools\History\Models\Change\AddParcelToDeliveryChangeBuilder\getChange
getChange()
Definition:
AddParcelToDeliveryChangeBuilder.php:47
Commercetools\History\Models\Change\AddParcelToDeliveryChangeBuilder\getNextValue
getNextValue()
Definition:
AddParcelToDeliveryChangeBuilder.php:58
Commercetools\History\Models\Change\AddParcelToDeliveryChangeBuilder\withDeliveryId
withDeliveryId(?string $deliveryId)
Definition:
AddParcelToDeliveryChangeBuilder.php:100
Commercetools\History\Models\Change\AddParcelToDeliveryChangeBuilder\build
build()
Definition:
AddParcelToDeliveryChangeBuilder.php:118
Commercetools\History\Models\Change\AddParcelToDeliveryChangeBuilder\getDeliveryId
getDeliveryId()
Definition:
AddParcelToDeliveryChangeBuilder.php:69
Commercetools\History\Models\Change\AddParcelToDeliveryChangeBuilder\withNextValue
withNextValue(?Parcel $nextValue)
Definition:
AddParcelToDeliveryChangeBuilder.php:89
Commercetools\History\Models\Change\AddParcelToDeliveryChangeModel
Definition:
AddParcelToDeliveryChangeModel.php:23
Commercetools\History\Models\Common\ParcelBuilder
Definition:
ParcelBuilder.php:22
Commercetools\History\Models\Common\ParcelBuilder\build
build()
Definition:
ParcelBuilder.php:175
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\History\Models\Change\AddParcelToDeliveryChange
Definition:
AddParcelToDeliveryChange.php:16
Commercetools\History\Models\Common\Parcel
Definition:
Parcel.php:15
Commercetools\History\Models\Change
Definition:
AddAddressChange.php:9
Generated by
1.9.1