3 declare(strict_types=1);
23 use DateTimeImmutable;
160 if (is_null($this->
id)) {
162 $data = $this->
raw(self::FIELD_ID);
163 if (is_null($data)) {
166 $this->
id = (string) $data;
180 if (is_null($this->version)) {
182 $data = $this->
raw(self::FIELD_VERSION);
183 if (is_null($data)) {
186 $this->version = (int) $data;
200 if (is_null($this->createdAt)) {
202 $data = $this->
raw(self::FIELD_CREATED_AT);
203 if (is_null($data)) {
207 if (
false === $data) {
210 $this->createdAt = $data;
224 if (is_null($this->lastModifiedAt)) {
226 $data = $this->
raw(self::FIELD_LAST_MODIFIED_AT);
227 if (is_null($data)) {
231 if (
false === $data) {
234 $this->lastModifiedAt = $data;
248 if (is_null($this->lastModifiedBy)) {
250 $data = $this->
raw(self::FIELD_LAST_MODIFIED_BY);
251 if (is_null($data)) {
269 if (is_null($this->createdBy)) {
271 $data = $this->
raw(self::FIELD_CREATED_BY);
272 if (is_null($data)) {
291 if (is_null($this->sequenceNumber)) {
293 $data = $this->
raw(self::FIELD_SEQUENCE_NUMBER);
294 if (is_null($data)) {
297 $this->sequenceNumber = (int) $data;
311 if (is_null($this->resource)) {
313 $data = $this->
raw(self::FIELD_RESOURCE);
314 if (is_null($data)) {
318 $this->resource = $className::of($data);
332 if (is_null($this->resourceVersion)) {
334 $data = $this->
raw(self::FIELD_RESOURCE_VERSION);
335 if (is_null($data)) {
338 $this->resourceVersion = (int) $data;
352 if (is_null($this->type)) {
354 $data = $this->
raw(self::FIELD_TYPE);
355 if (is_null($data)) {
358 $this->type = (string) $data;
372 if (is_null($this->resourceUserProvidedIdentifiers)) {
374 $data = $this->
raw(self::FIELD_RESOURCE_USER_PROVIDED_IDENTIFIERS);
375 if (is_null($data)) {
393 if (is_null($this->removedImageUrls)) {
395 $data = $this->
raw(self::FIELD_REMOVED_IMAGE_URLS);
396 if (is_null($data)) {
399 $this->removedImageUrls = $data;
413 if (is_null($this->productProjection)) {
415 $data = $this->
raw(self::FIELD_PRODUCT_PROJECTION);
416 if (is_null($data)) {
434 if (is_null($this->scope)) {
436 $data = $this->
raw(self::FIELD_SCOPE);
437 if (is_null($data)) {
440 $this->scope = (string) $data;
552 #[\ReturnTypeWillChange]
563 return (
object) $data;