commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
ParcelMeasurementsUpdatedMessageBuilder.php
1<?php
2
3declare(strict_types=1);
10
24use DateTimeImmutable;
25use stdClass;
26
31{
36 private $id;
37
42 private $version;
43
48 private $createdAt;
49
54 private $lastModifiedAt;
55
60 private $lastModifiedBy;
61
66 private $createdBy;
67
72 private $sequenceNumber;
73
78 private $resource;
79
84 private $resourceVersion;
85
90 private $resourceUserProvidedIdentifiers;
91
96 private $deliveryId;
97
102 private $parcelId;
103
108 private $measurements;
109
114 private $shippingKey;
115
122 public function getId()
123 {
124 return $this->id;
125 }
126
133 public function getVersion()
134 {
135 return $this->version;
136 }
137
144 public function getCreatedAt()
145 {
146 return $this->createdAt;
147 }
148
155 public function getLastModifiedAt()
156 {
157 return $this->lastModifiedAt;
158 }
159
166 public function getLastModifiedBy()
167 {
168 return $this->lastModifiedBy instanceof LastModifiedByBuilder ? $this->lastModifiedBy->build() : $this->lastModifiedBy;
169 }
170
177 public function getCreatedBy()
178 {
179 return $this->createdBy instanceof CreatedByBuilder ? $this->createdBy->build() : $this->createdBy;
180 }
181
189 public function getSequenceNumber()
190 {
191 return $this->sequenceNumber;
192 }
193
200 public function getResource()
201 {
202 return $this->resource instanceof ReferenceBuilder ? $this->resource->build() : $this->resource;
203 }
204
211 public function getResourceVersion()
212 {
213 return $this->resourceVersion;
214 }
215
223 {
224 return $this->resourceUserProvidedIdentifiers instanceof UserProvidedIdentifiersBuilder ? $this->resourceUserProvidedIdentifiers->build() : $this->resourceUserProvidedIdentifiers;
225 }
226
233 public function getDeliveryId()
234 {
235 return $this->deliveryId;
236 }
237
244 public function getParcelId()
245 {
246 return $this->parcelId;
247 }
248
255 public function getMeasurements()
256 {
257 return $this->measurements instanceof ParcelMeasurementsBuilder ? $this->measurements->build() : $this->measurements;
258 }
259
266 public function getShippingKey()
267 {
268 return $this->shippingKey;
269 }
270
275 public function withId(?string $id)
276 {
277 $this->id = $id;
278
279 return $this;
280 }
281
286 public function withVersion(?int $version)
287 {
288 $this->version = $version;
289
290 return $this;
291 }
292
297 public function withCreatedAt(?DateTimeImmutable $createdAt)
298 {
299 $this->createdAt = $createdAt;
300
301 return $this;
302 }
303
308 public function withLastModifiedAt(?DateTimeImmutable $lastModifiedAt)
309 {
310 $this->lastModifiedAt = $lastModifiedAt;
311
312 return $this;
313 }
314
319 public function withLastModifiedBy(?LastModifiedBy $lastModifiedBy)
320 {
321 $this->lastModifiedBy = $lastModifiedBy;
322
323 return $this;
324 }
325
330 public function withCreatedBy(?CreatedBy $createdBy)
331 {
332 $this->createdBy = $createdBy;
333
334 return $this;
335 }
336
341 public function withSequenceNumber(?int $sequenceNumber)
342 {
343 $this->sequenceNumber = $sequenceNumber;
344
345 return $this;
346 }
347
352 public function withResource(?Reference $resource)
353 {
354 $this->resource = $resource;
355
356 return $this;
357 }
358
363 public function withResourceVersion(?int $resourceVersion)
364 {
365 $this->resourceVersion = $resourceVersion;
366
367 return $this;
368 }
369
374 public function withResourceUserProvidedIdentifiers(?UserProvidedIdentifiers $resourceUserProvidedIdentifiers)
375 {
376 $this->resourceUserProvidedIdentifiers = $resourceUserProvidedIdentifiers;
377
378 return $this;
379 }
380
385 public function withDeliveryId(?string $deliveryId)
386 {
387 $this->deliveryId = $deliveryId;
388
389 return $this;
390 }
391
396 public function withParcelId(?string $parcelId)
397 {
398 $this->parcelId = $parcelId;
399
400 return $this;
401 }
402
407 public function withMeasurements(?ParcelMeasurements $measurements)
408 {
409 $this->measurements = $measurements;
410
411 return $this;
412 }
413
418 public function withShippingKey(?string $shippingKey)
419 {
420 $this->shippingKey = $shippingKey;
421
422 return $this;
423 }
424
429 public function withLastModifiedByBuilder(?LastModifiedByBuilder $lastModifiedBy)
430 {
431 $this->lastModifiedBy = $lastModifiedBy;
432
433 return $this;
434 }
435
440 public function withCreatedByBuilder(?CreatedByBuilder $createdBy)
441 {
442 $this->createdBy = $createdBy;
443
444 return $this;
445 }
446
451 public function withResourceBuilder(?ReferenceBuilder $resource)
452 {
453 $this->resource = $resource;
454
455 return $this;
456 }
457
462 public function withResourceUserProvidedIdentifiersBuilder(?UserProvidedIdentifiersBuilder $resourceUserProvidedIdentifiers)
463 {
464 $this->resourceUserProvidedIdentifiers = $resourceUserProvidedIdentifiers;
465
466 return $this;
467 }
468
474 {
475 $this->measurements = $measurements;
476
477 return $this;
478 }
479
481 {
483 $this->id,
484 $this->version,
485 $this->createdAt,
486 $this->lastModifiedAt,
487 $this->lastModifiedBy instanceof LastModifiedByBuilder ? $this->lastModifiedBy->build() : $this->lastModifiedBy,
488 $this->createdBy instanceof CreatedByBuilder ? $this->createdBy->build() : $this->createdBy,
489 $this->sequenceNumber,
490 $this->resource instanceof ReferenceBuilder ? $this->resource->build() : $this->resource,
491 $this->resourceVersion,
492 $this->resourceUserProvidedIdentifiers instanceof UserProvidedIdentifiersBuilder ? $this->resourceUserProvidedIdentifiers->build() : $this->resourceUserProvidedIdentifiers,
493 $this->deliveryId,
494 $this->parcelId,
495 $this->measurements instanceof ParcelMeasurementsBuilder ? $this->measurements->build() : $this->measurements,
496 $this->shippingKey
497 );
498 }
499
501 {
502 return new self();
503 }
504}
withResourceUserProvidedIdentifiers(?UserProvidedIdentifiers $resourceUserProvidedIdentifiers)
withResourceUserProvidedIdentifiersBuilder(?UserProvidedIdentifiersBuilder $resourceUserProvidedIdentifiers)