3 declare(strict_types=1);
21 use DateTimeImmutable;
166 if (is_null($this->
id)) {
168 $data = $this->
raw(self::FIELD_ID);
169 if (is_null($data)) {
172 $this->
id = (string) $data;
186 if (is_null($this->version)) {
188 $data = $this->
raw(self::FIELD_VERSION);
189 if (is_null($data)) {
192 $this->version = (int) $data;
206 if (is_null($this->createdAt)) {
208 $data = $this->
raw(self::FIELD_CREATED_AT);
209 if (is_null($data)) {
213 if (
false === $data) {
216 $this->createdAt = $data;
230 if (is_null($this->lastModifiedAt)) {
232 $data = $this->
raw(self::FIELD_LAST_MODIFIED_AT);
233 if (is_null($data)) {
237 if (
false === $data) {
240 $this->lastModifiedAt = $data;
254 if (is_null($this->lastModifiedBy)) {
256 $data = $this->
raw(self::FIELD_LAST_MODIFIED_BY);
257 if (is_null($data)) {
275 if (is_null($this->createdBy)) {
277 $data = $this->
raw(self::FIELD_CREATED_BY);
278 if (is_null($data)) {
297 if (is_null($this->sequenceNumber)) {
299 $data = $this->
raw(self::FIELD_SEQUENCE_NUMBER);
300 if (is_null($data)) {
303 $this->sequenceNumber = (int) $data;
317 if (is_null($this->resource)) {
319 $data = $this->
raw(self::FIELD_RESOURCE);
320 if (is_null($data)) {
324 $this->resource = $className::of($data);
338 if (is_null($this->resourceVersion)) {
340 $data = $this->
raw(self::FIELD_RESOURCE_VERSION);
341 if (is_null($data)) {
344 $this->resourceVersion = (int) $data;
358 if (is_null($this->type)) {
360 $data = $this->
raw(self::FIELD_TYPE);
361 if (is_null($data)) {
364 $this->type = (string) $data;
378 if (is_null($this->resourceUserProvidedIdentifiers)) {
380 $data = $this->
raw(self::FIELD_RESOURCE_USER_PROVIDED_IDENTIFIERS);
381 if (is_null($data)) {
399 if (is_null($this->oldRating)) {
401 $data = $this->
raw(self::FIELD_OLD_RATING);
402 if (is_null($data)) {
405 $this->oldRating = (float) $data;
419 if (is_null($this->newRating)) {
421 $data = $this->
raw(self::FIELD_NEW_RATING);
422 if (is_null($data)) {
425 $this->newRating = (float) $data;
439 if (is_null($this->includedInStatistics)) {
441 $data = $this->
raw(self::FIELD_INCLUDED_IN_STATISTICS);
442 if (is_null($data)) {
445 $this->includedInStatistics = (bool) $data;
459 if (is_null($this->target)) {
461 $data = $this->
raw(self::FIELD_TARGET);
462 if (is_null($data)) {
466 $this->target = $className::of($data);
586 #[\ReturnTypeWillChange]
597 return (
object) $data;