3declare(strict_types=1);
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)) {
212 $data = DateTimeImmutable::createFromFormat(MapperFactory::DATETIME_FORMAT, $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)) {
236 $data = DateTimeImmutable::createFromFormat(MapperFactory::DATETIME_FORMAT, $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)) {
261 $this->lastModifiedBy = LastModifiedByModel::of($data);
275 if (is_null($this->createdBy)) {
277 $data = $this->
raw(self::FIELD_CREATED_BY);
278 if (is_null($data)) {
282 $this->createdBy = CreatedByModel::of($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)) {
323 $className = ReferenceModel::resolveDiscriminatorClass($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->customerId)) {
401 $data = $this->
raw(self::FIELD_CUSTOMER_ID);
402 if (is_null($data)) {
405 $this->customerId = (string) $data;
419 if (is_null($this->expiresAt)) {
421 $data = $this->
raw(self::FIELD_EXPIRES_AT);
422 if (is_null($data)) {
425 $data = DateTimeImmutable::createFromFormat(MapperFactory::DATETIME_FORMAT, $data);
426 if (
false === $data) {
429 $this->expiresAt = $data;
443 if (is_null($this->value)) {
445 $data = $this->
raw(self::FIELD_VALUE);
446 if (is_null($data)) {
449 $this->value = (string) $data;
463 if (is_null($this->invalidateOlderTokens)) {
465 $data = $this->
raw(self::FIELD_INVALIDATE_OLDER_TOKENS);
466 if (is_null($data)) {
469 $this->invalidateOlderTokens = (bool) $data;
589 #[\ReturnTypeWillChange]
604 return (
object) $data;