commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
CustomerCustomFieldChangedMessageBuilder.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
114 public function getId()
115 {
116 return $this->id;
117 }
118
125 public function getVersion()
126 {
127 return $this->version;
128 }
129
136 public function getCreatedAt()
137 {
138 return $this->createdAt;
139 }
140
147 public function getLastModifiedAt()
148 {
149 return $this->lastModifiedAt;
150 }
151
158 public function getLastModifiedBy()
159 {
160 return $this->lastModifiedBy instanceof LastModifiedByBuilder ? $this->lastModifiedBy->build() : $this->lastModifiedBy;
161 }
162
169 public function getCreatedBy()
170 {
171 return $this->createdBy instanceof CreatedByBuilder ? $this->createdBy->build() : $this->createdBy;
172 }
173
181 public function getSequenceNumber()
182 {
183 return $this->sequenceNumber;
184 }
185
192 public function getResource()
193 {
194 return $this->resource instanceof ReferenceBuilder ? $this->resource->build() : $this->resource;
195 }
196
203 public function getResourceVersion()
204 {
205 return $this->resourceVersion;
206 }
207
215 {
216 return $this->resourceUserProvidedIdentifiers instanceof UserProvidedIdentifiersBuilder ? $this->resourceUserProvidedIdentifiers->build() : $this->resourceUserProvidedIdentifiers;
217 }
218
225 public function getName()
226 {
227 return $this->name;
228 }
229
236 public function getValue()
237 {
238 return $this->value;
239 }
240
248 public function getPreviousValue()
249 {
250 return $this->previousValue;
251 }
252
257 public function withId(?string $id)
258 {
259 $this->id = $id;
260
261 return $this;
262 }
263
268 public function withVersion(?int $version)
269 {
270 $this->version = $version;
271
272 return $this;
273 }
274
279 public function withCreatedAt(?DateTimeImmutable $createdAt)
280 {
281 $this->createdAt = $createdAt;
282
283 return $this;
284 }
285
290 public function withLastModifiedAt(?DateTimeImmutable $lastModifiedAt)
291 {
292 $this->lastModifiedAt = $lastModifiedAt;
293
294 return $this;
295 }
296
301 public function withLastModifiedBy(?LastModifiedBy $lastModifiedBy)
302 {
303 $this->lastModifiedBy = $lastModifiedBy;
304
305 return $this;
306 }
307
312 public function withCreatedBy(?CreatedBy $createdBy)
313 {
314 $this->createdBy = $createdBy;
315
316 return $this;
317 }
318
323 public function withSequenceNumber(?int $sequenceNumber)
324 {
325 $this->sequenceNumber = $sequenceNumber;
326
327 return $this;
328 }
329
334 public function withResource(?Reference $resource)
335 {
336 $this->resource = $resource;
337
338 return $this;
339 }
340
345 public function withResourceVersion(?int $resourceVersion)
346 {
347 $this->resourceVersion = $resourceVersion;
348
349 return $this;
350 }
351
356 public function withResourceUserProvidedIdentifiers(?UserProvidedIdentifiers $resourceUserProvidedIdentifiers)
357 {
358 $this->resourceUserProvidedIdentifiers = $resourceUserProvidedIdentifiers;
359
360 return $this;
361 }
362
367 public function withName(?string $name)
368 {
369 $this->name = $name;
370
371 return $this;
372 }
373
378 public function withValue($value)
379 {
380 $this->value = $value;
381
382 return $this;
383 }
384
389 public function withPreviousValue($previousValue)
390 {
391 $this->previousValue = $previousValue;
392
393 return $this;
394 }
395
400 public function withLastModifiedByBuilder(?LastModifiedByBuilder $lastModifiedBy)
401 {
402 $this->lastModifiedBy = $lastModifiedBy;
403
404 return $this;
405 }
406
411 public function withCreatedByBuilder(?CreatedByBuilder $createdBy)
412 {
413 $this->createdBy = $createdBy;
414
415 return $this;
416 }
417
422 public function withResourceBuilder(?ReferenceBuilder $resource)
423 {
424 $this->resource = $resource;
425
426 return $this;
427 }
428
433 public function withResourceUserProvidedIdentifiersBuilder(?UserProvidedIdentifiersBuilder $resourceUserProvidedIdentifiers)
434 {
435 $this->resourceUserProvidedIdentifiers = $resourceUserProvidedIdentifiers;
436
437 return $this;
438 }
439
441 {
443 $this->id,
444 $this->version,
445 $this->createdAt,
446 $this->lastModifiedAt,
447 $this->lastModifiedBy instanceof LastModifiedByBuilder ? $this->lastModifiedBy->build() : $this->lastModifiedBy,
448 $this->createdBy instanceof CreatedByBuilder ? $this->createdBy->build() : $this->createdBy,
449 $this->sequenceNumber,
450 $this->resource instanceof ReferenceBuilder ? $this->resource->build() : $this->resource,
451 $this->resourceVersion,
452 $this->resourceUserProvidedIdentifiers instanceof UserProvidedIdentifiersBuilder ? $this->resourceUserProvidedIdentifiers->build() : $this->resourceUserProvidedIdentifiers,
453 $this->name,
454 $this->value,
455 $this->previousValue
456 );
457 }
458
460 {
461 return new self();
462 }
463}
withResourceUserProvidedIdentifiers(?UserProvidedIdentifiers $resourceUserProvidedIdentifiers)
withResourceUserProvidedIdentifiersBuilder(?UserProvidedIdentifiersBuilder $resourceUserProvidedIdentifiers)