commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
DeliveryCustomFieldChangedMessageBuilder.php
1<?php
2
3declare(strict_types=1);
10
22use DateTimeImmutable;
23use stdClass;
24
29{
34 private $id;
35
40 private $version;
41
46 private $createdAt;
47
52 private $lastModifiedAt;
53
58 private $lastModifiedBy;
59
64 private $createdBy;
65
70 private $sequenceNumber;
71
76 private $resource;
77
82 private $resourceVersion;
83
88 private $resourceUserProvidedIdentifiers;
89
94 private $name;
95
100 private $value;
101
106 private $previousValue;
107
112 private $deliveryId;
113
120 public function getId()
121 {
122 return $this->id;
123 }
124
131 public function getVersion()
132 {
133 return $this->version;
134 }
135
142 public function getCreatedAt()
143 {
144 return $this->createdAt;
145 }
146
153 public function getLastModifiedAt()
154 {
155 return $this->lastModifiedAt;
156 }
157
164 public function getLastModifiedBy()
165 {
166 return $this->lastModifiedBy instanceof LastModifiedByBuilder ? $this->lastModifiedBy->build() : $this->lastModifiedBy;
167 }
168
175 public function getCreatedBy()
176 {
177 return $this->createdBy instanceof CreatedByBuilder ? $this->createdBy->build() : $this->createdBy;
178 }
179
187 public function getSequenceNumber()
188 {
189 return $this->sequenceNumber;
190 }
191
198 public function getResource()
199 {
200 return $this->resource instanceof ReferenceBuilder ? $this->resource->build() : $this->resource;
201 }
202
209 public function getResourceVersion()
210 {
211 return $this->resourceVersion;
212 }
213
221 {
222 return $this->resourceUserProvidedIdentifiers instanceof UserProvidedIdentifiersBuilder ? $this->resourceUserProvidedIdentifiers->build() : $this->resourceUserProvidedIdentifiers;
223 }
224
231 public function getName()
232 {
233 return $this->name;
234 }
235
242 public function getValue()
243 {
244 return $this->value;
245 }
246
254 public function getPreviousValue()
255 {
256 return $this->previousValue;
257 }
258
265 public function getDeliveryId()
266 {
267 return $this->deliveryId;
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 withName(?string $name)
385 {
386 $this->name = $name;
387
388 return $this;
389 }
390
395 public function withValue($value)
396 {
397 $this->value = $value;
398
399 return $this;
400 }
401
406 public function withPreviousValue($previousValue)
407 {
408 $this->previousValue = $previousValue;
409
410 return $this;
411 }
412
417 public function withDeliveryId(?string $deliveryId)
418 {
419 $this->deliveryId = $deliveryId;
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->name,
482 $this->value,
483 $this->previousValue,
484 $this->deliveryId
485 );
486 }
487
489 {
490 return new self();
491 }
492}
withResourceUserProvidedIdentifiers(?UserProvidedIdentifiers $resourceUserProvidedIdentifiers)
withResourceUserProvidedIdentifiersBuilder(?UserProvidedIdentifiersBuilder $resourceUserProvidedIdentifiers)