commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
DeliveryItemsUpdatedMessagePayloadBuilder.php
1<?php
2
3declare(strict_types=1);
10
17use stdClass;
18
23{
28 private $deliveryId;
29
34 private $items;
35
40 private $oldItems;
41
46 private $shippingKey;
47
54 public function getDeliveryId()
55 {
56 return $this->deliveryId;
57 }
58
65 public function getItems()
66 {
67 return $this->items;
68 }
69
76 public function getOldItems()
77 {
78 return $this->oldItems;
79 }
80
87 public function getShippingKey()
88 {
89 return $this->shippingKey;
90 }
91
96 public function withDeliveryId(?string $deliveryId)
97 {
98 $this->deliveryId = $deliveryId;
99
100 return $this;
101 }
102
107 public function withItems(?DeliveryItemCollection $items)
108 {
109 $this->items = $items;
110
111 return $this;
112 }
113
118 public function withOldItems(?DeliveryItemCollection $oldItems)
119 {
120 $this->oldItems = $oldItems;
121
122 return $this;
123 }
124
129 public function withShippingKey(?string $shippingKey)
130 {
131 $this->shippingKey = $shippingKey;
132
133 return $this;
134 }
135
136
138 {
140 $this->deliveryId,
141 $this->items,
142 $this->oldItems,
143 $this->shippingKey
144 );
145 }
146
148 {
149 return new self();
150 }
151}