commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
DeliveryItemsUpdatedMessageBuilder.php
1<?php
2
3declare(strict_types=1);
10
23use DateTimeImmutable;
24use stdClass;
25
30{
35 private $id;
36
41 private $version;
42
47 private $createdAt;
48
53 private $lastModifiedAt;
54
59 private $lastModifiedBy;
60
65 private $createdBy;
66
71 private $sequenceNumber;
72
77 private $resource;
78
83 private $resourceVersion;
84
89 private $resourceUserProvidedIdentifiers;
90
95 private $deliveryId;
96
101 private $items;
102
107 private $oldItems;
108
113 private $shippingKey;
114
121 public function getId()
122 {
123 return $this->id;
124 }
125
132 public function getVersion()
133 {
134 return $this->version;
135 }
136
143 public function getCreatedAt()
144 {
145 return $this->createdAt;
146 }
147
154 public function getLastModifiedAt()
155 {
156 return $this->lastModifiedAt;
157 }
158
165 public function getLastModifiedBy()
166 {
167 return $this->lastModifiedBy instanceof LastModifiedByBuilder ? $this->lastModifiedBy->build() : $this->lastModifiedBy;
168 }
169
176 public function getCreatedBy()
177 {
178 return $this->createdBy instanceof CreatedByBuilder ? $this->createdBy->build() : $this->createdBy;
179 }
180
188 public function getSequenceNumber()
189 {
190 return $this->sequenceNumber;
191 }
192
199 public function getResource()
200 {
201 return $this->resource instanceof ReferenceBuilder ? $this->resource->build() : $this->resource;
202 }
203
210 public function getResourceVersion()
211 {
212 return $this->resourceVersion;
213 }
214
222 {
223 return $this->resourceUserProvidedIdentifiers instanceof UserProvidedIdentifiersBuilder ? $this->resourceUserProvidedIdentifiers->build() : $this->resourceUserProvidedIdentifiers;
224 }
225
232 public function getDeliveryId()
233 {
234 return $this->deliveryId;
235 }
236
243 public function getItems()
244 {
245 return $this->items;
246 }
247
254 public function getOldItems()
255 {
256 return $this->oldItems;
257 }
258
265 public function getShippingKey()
266 {
267 return $this->shippingKey;
268 }
269
274 public function withId(?string $id)
275 {
276 $this->id = $id;
277
278 return $this;
279 }
280
285 public function withVersion(?int $version)
286 {
287 $this->version = $version;
288
289 return $this;
290 }
291
296 public function withCreatedAt(?DateTimeImmutable $createdAt)
297 {
298 $this->createdAt = $createdAt;
299
300 return $this;
301 }
302
307 public function withLastModifiedAt(?DateTimeImmutable $lastModifiedAt)
308 {
309 $this->lastModifiedAt = $lastModifiedAt;
310
311 return $this;
312 }
313
318 public function withLastModifiedBy(?LastModifiedBy $lastModifiedBy)
319 {
320 $this->lastModifiedBy = $lastModifiedBy;
321
322 return $this;
323 }
324
329 public function withCreatedBy(?CreatedBy $createdBy)
330 {
331 $this->createdBy = $createdBy;
332
333 return $this;
334 }
335
340 public function withSequenceNumber(?int $sequenceNumber)
341 {
342 $this->sequenceNumber = $sequenceNumber;
343
344 return $this;
345 }
346
351 public function withResource(?Reference $resource)
352 {
353 $this->resource = $resource;
354
355 return $this;
356 }
357
362 public function withResourceVersion(?int $resourceVersion)
363 {
364 $this->resourceVersion = $resourceVersion;
365
366 return $this;
367 }
368
373 public function withResourceUserProvidedIdentifiers(?UserProvidedIdentifiers $resourceUserProvidedIdentifiers)
374 {
375 $this->resourceUserProvidedIdentifiers = $resourceUserProvidedIdentifiers;
376
377 return $this;
378 }
379
384 public function withDeliveryId(?string $deliveryId)
385 {
386 $this->deliveryId = $deliveryId;
387
388 return $this;
389 }
390
395 public function withItems(?DeliveryItemCollection $items)
396 {
397 $this->items = $items;
398
399 return $this;
400 }
401
406 public function withOldItems(?DeliveryItemCollection $oldItems)
407 {
408 $this->oldItems = $oldItems;
409
410 return $this;
411 }
412
417 public function withShippingKey(?string $shippingKey)
418 {
419 $this->shippingKey = $shippingKey;
420
421 return $this;
422 }
423
428 public function withLastModifiedByBuilder(?LastModifiedByBuilder $lastModifiedBy)
429 {
430 $this->lastModifiedBy = $lastModifiedBy;
431
432 return $this;
433 }
434
439 public function withCreatedByBuilder(?CreatedByBuilder $createdBy)
440 {
441 $this->createdBy = $createdBy;
442
443 return $this;
444 }
445
450 public function withResourceBuilder(?ReferenceBuilder $resource)
451 {
452 $this->resource = $resource;
453
454 return $this;
455 }
456
461 public function withResourceUserProvidedIdentifiersBuilder(?UserProvidedIdentifiersBuilder $resourceUserProvidedIdentifiers)
462 {
463 $this->resourceUserProvidedIdentifiers = $resourceUserProvidedIdentifiers;
464
465 return $this;
466 }
467
469 {
471 $this->id,
472 $this->version,
473 $this->createdAt,
474 $this->lastModifiedAt,
475 $this->lastModifiedBy instanceof LastModifiedByBuilder ? $this->lastModifiedBy->build() : $this->lastModifiedBy,
476 $this->createdBy instanceof CreatedByBuilder ? $this->createdBy->build() : $this->createdBy,
477 $this->sequenceNumber,
478 $this->resource instanceof ReferenceBuilder ? $this->resource->build() : $this->resource,
479 $this->resourceVersion,
480 $this->resourceUserProvidedIdentifiers instanceof UserProvidedIdentifiersBuilder ? $this->resourceUserProvidedIdentifiers->build() : $this->resourceUserProvidedIdentifiers,
481 $this->deliveryId,
482 $this->items,
483 $this->oldItems,
484 $this->shippingKey
485 );
486 }
487
488 public static function of(): DeliveryItemsUpdatedMessageBuilder
489 {
490 return new self();
491 }
492}
withResourceUserProvidedIdentifiersBuilder(?UserProvidedIdentifiersBuilder $resourceUserProvidedIdentifiers)
withResourceUserProvidedIdentifiers(?UserProvidedIdentifiers $resourceUserProvidedIdentifiers)