commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
CustomerPasswordUpdatedMessageBuilder.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 $reset;
95
102 public function getId()
103 {
104 return $this->id;
105 }
106
113 public function getVersion()
114 {
115 return $this->version;
116 }
117
124 public function getCreatedAt()
125 {
126 return $this->createdAt;
127 }
128
135 public function getLastModifiedAt()
136 {
137 return $this->lastModifiedAt;
138 }
139
146 public function getLastModifiedBy()
147 {
148 return $this->lastModifiedBy instanceof LastModifiedByBuilder ? $this->lastModifiedBy->build() : $this->lastModifiedBy;
149 }
150
157 public function getCreatedBy()
158 {
159 return $this->createdBy instanceof CreatedByBuilder ? $this->createdBy->build() : $this->createdBy;
160 }
161
169 public function getSequenceNumber()
170 {
171 return $this->sequenceNumber;
172 }
173
180 public function getResource()
181 {
182 return $this->resource instanceof ReferenceBuilder ? $this->resource->build() : $this->resource;
183 }
184
191 public function getResourceVersion()
192 {
193 return $this->resourceVersion;
194 }
195
203 {
204 return $this->resourceUserProvidedIdentifiers instanceof UserProvidedIdentifiersBuilder ? $this->resourceUserProvidedIdentifiers->build() : $this->resourceUserProvidedIdentifiers;
205 }
206
213 public function getReset()
214 {
215 return $this->reset;
216 }
217
222 public function withId(?string $id)
223 {
224 $this->id = $id;
225
226 return $this;
227 }
228
233 public function withVersion(?int $version)
234 {
235 $this->version = $version;
236
237 return $this;
238 }
239
244 public function withCreatedAt(?DateTimeImmutable $createdAt)
245 {
246 $this->createdAt = $createdAt;
247
248 return $this;
249 }
250
255 public function withLastModifiedAt(?DateTimeImmutable $lastModifiedAt)
256 {
257 $this->lastModifiedAt = $lastModifiedAt;
258
259 return $this;
260 }
261
266 public function withLastModifiedBy(?LastModifiedBy $lastModifiedBy)
267 {
268 $this->lastModifiedBy = $lastModifiedBy;
269
270 return $this;
271 }
272
277 public function withCreatedBy(?CreatedBy $createdBy)
278 {
279 $this->createdBy = $createdBy;
280
281 return $this;
282 }
283
288 public function withSequenceNumber(?int $sequenceNumber)
289 {
290 $this->sequenceNumber = $sequenceNumber;
291
292 return $this;
293 }
294
299 public function withResource(?Reference $resource)
300 {
301 $this->resource = $resource;
302
303 return $this;
304 }
305
310 public function withResourceVersion(?int $resourceVersion)
311 {
312 $this->resourceVersion = $resourceVersion;
313
314 return $this;
315 }
316
321 public function withResourceUserProvidedIdentifiers(?UserProvidedIdentifiers $resourceUserProvidedIdentifiers)
322 {
323 $this->resourceUserProvidedIdentifiers = $resourceUserProvidedIdentifiers;
324
325 return $this;
326 }
327
332 public function withReset(?bool $reset)
333 {
334 $this->reset = $reset;
335
336 return $this;
337 }
338
343 public function withLastModifiedByBuilder(?LastModifiedByBuilder $lastModifiedBy)
344 {
345 $this->lastModifiedBy = $lastModifiedBy;
346
347 return $this;
348 }
349
354 public function withCreatedByBuilder(?CreatedByBuilder $createdBy)
355 {
356 $this->createdBy = $createdBy;
357
358 return $this;
359 }
360
365 public function withResourceBuilder(?ReferenceBuilder $resource)
366 {
367 $this->resource = $resource;
368
369 return $this;
370 }
371
376 public function withResourceUserProvidedIdentifiersBuilder(?UserProvidedIdentifiersBuilder $resourceUserProvidedIdentifiers)
377 {
378 $this->resourceUserProvidedIdentifiers = $resourceUserProvidedIdentifiers;
379
380 return $this;
381 }
382
384 {
386 $this->id,
387 $this->version,
388 $this->createdAt,
389 $this->lastModifiedAt,
390 $this->lastModifiedBy instanceof LastModifiedByBuilder ? $this->lastModifiedBy->build() : $this->lastModifiedBy,
391 $this->createdBy instanceof CreatedByBuilder ? $this->createdBy->build() : $this->createdBy,
392 $this->sequenceNumber,
393 $this->resource instanceof ReferenceBuilder ? $this->resource->build() : $this->resource,
394 $this->resourceVersion,
395 $this->resourceUserProvidedIdentifiers instanceof UserProvidedIdentifiersBuilder ? $this->resourceUserProvidedIdentifiers->build() : $this->resourceUserProvidedIdentifiers,
396 $this->reset
397 );
398 }
399
401 {
402 return new self();
403 }
404}
withResourceUserProvidedIdentifiers(?UserProvidedIdentifiers $resourceUserProvidedIdentifiers)
withResourceUserProvidedIdentifiersBuilder(?UserProvidedIdentifiersBuilder $resourceUserProvidedIdentifiers)