3 declare(strict_types=1);
26 use DateTimeImmutable;
162 if (is_null($this->
id)) {
164 $data = $this->
raw(self::FIELD_ID);
165 if (is_null($data)) {
168 $this->
id = (string) $data;
182 if (is_null($this->version)) {
184 $data = $this->
raw(self::FIELD_VERSION);
185 if (is_null($data)) {
188 $this->version = (int) $data;
202 if (is_null($this->createdAt)) {
204 $data = $this->
raw(self::FIELD_CREATED_AT);
205 if (is_null($data)) {
209 if (
false === $data) {
212 $this->createdAt = $data;
226 if (is_null($this->lastModifiedAt)) {
228 $data = $this->
raw(self::FIELD_LAST_MODIFIED_AT);
229 if (is_null($data)) {
233 if (
false === $data) {
236 $this->lastModifiedAt = $data;
250 if (is_null($this->lastModifiedBy)) {
252 $data = $this->
raw(self::FIELD_LAST_MODIFIED_BY);
253 if (is_null($data)) {
271 if (is_null($this->createdBy)) {
273 $data = $this->
raw(self::FIELD_CREATED_BY);
274 if (is_null($data)) {
292 if (is_null($this->key)) {
294 $data = $this->
raw(self::FIELD_KEY);
295 if (is_null($data)) {
298 $this->key = (string) $data;
312 if (is_null($this->store)) {
314 $data = $this->
raw(self::FIELD_STORE);
315 if (is_null($data)) {
333 if (is_null($this->product)) {
335 $data = $this->
raw(self::FIELD_PRODUCT);
336 if (is_null($data)) {
354 if (is_null($this->published)) {
356 $data = $this->
raw(self::FIELD_PUBLISHED);
357 if (is_null($data)) {
360 $this->published = (bool) $data;
374 if (is_null($this->current)) {
376 $data = $this->
raw(self::FIELD_CURRENT);
377 if (is_null($data)) {
395 if (is_null($this->staged)) {
397 $data = $this->
raw(self::FIELD_STAGED);
398 if (is_null($data)) {
416 if (is_null($this->hasStagedChanges)) {
418 $data = $this->
raw(self::FIELD_HAS_STAGED_CHANGES);
419 if (is_null($data)) {
422 $this->hasStagedChanges = (bool) $data;
437 if (is_null($this->warnings)) {
439 $data = $this->
raw(self::FIELD_WARNINGS);
440 if (is_null($data)) {
563 #[\ReturnTypeWillChange]
574 return (
object) $data;