3 declare(strict_types=1);
28 use DateTimeImmutable;
197 if (is_null($this->
id)) {
199 $data = $this->
raw(self::FIELD_ID);
200 if (is_null($data)) {
203 $this->
id = (string) $data;
217 if (is_null($this->version)) {
219 $data = $this->
raw(self::FIELD_VERSION);
220 if (is_null($data)) {
223 $this->version = (int) $data;
237 if (is_null($this->createdAt)) {
239 $data = $this->
raw(self::FIELD_CREATED_AT);
240 if (is_null($data)) {
244 if (
false === $data) {
247 $this->createdAt = $data;
261 if (is_null($this->lastModifiedAt)) {
263 $data = $this->
raw(self::FIELD_LAST_MODIFIED_AT);
264 if (is_null($data)) {
268 if (
false === $data) {
271 $this->lastModifiedAt = $data;
285 if (is_null($this->lastModifiedBy)) {
287 $data = $this->
raw(self::FIELD_LAST_MODIFIED_BY);
288 if (is_null($data)) {
306 if (is_null($this->createdBy)) {
308 $data = $this->
raw(self::FIELD_CREATED_BY);
309 if (is_null($data)) {
328 if (is_null($this->sequenceNumber)) {
330 $data = $this->
raw(self::FIELD_SEQUENCE_NUMBER);
331 if (is_null($data)) {
334 $this->sequenceNumber = (int) $data;
348 if (is_null($this->resource)) {
350 $data = $this->
raw(self::FIELD_RESOURCE);
351 if (is_null($data)) {
355 $this->resource = $className::of($data);
369 if (is_null($this->resourceVersion)) {
371 $data = $this->
raw(self::FIELD_RESOURCE_VERSION);
372 if (is_null($data)) {
375 $this->resourceVersion = (int) $data;
389 if (is_null($this->type)) {
391 $data = $this->
raw(self::FIELD_TYPE);
392 if (is_null($data)) {
395 $this->type = (string) $data;
409 if (is_null($this->resourceUserProvidedIdentifiers)) {
411 $data = $this->
raw(self::FIELD_RESOURCE_USER_PROVIDED_IDENTIFIERS);
412 if (is_null($data)) {
430 if (is_null($this->name)) {
432 $data = $this->
raw(self::FIELD_NAME);
433 if (is_null($data)) {
451 if (is_null($this->languages)) {
453 $data = $this->
raw(self::FIELD_LANGUAGES);
454 if (is_null($data)) {
457 $this->languages = $data;
471 if (is_null($this->countries)) {
473 $data = $this->
raw(self::FIELD_COUNTRIES);
474 if (is_null($data)) {
491 if (is_null($this->distributionChannels)) {
493 $data = $this->
raw(self::FIELD_DISTRIBUTION_CHANNELS);
494 if (is_null($data)) {
511 if (is_null($this->supplyChannels)) {
513 $data = $this->
raw(self::FIELD_SUPPLY_CHANNELS);
514 if (is_null($data)) {
531 if (is_null($this->productSelections)) {
533 $data = $this->
raw(self::FIELD_PRODUCT_SELECTIONS);
534 if (is_null($data)) {
551 if (is_null($this->custom)) {
553 $data = $this->
raw(self::FIELD_CUSTOM);
554 if (is_null($data)) {
702 #[\ReturnTypeWillChange]
713 return (
object) $data;