3 declare(strict_types=1);
21 use DateTimeImmutable;
135 ?
string $name =
null,
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->name)) {
401 $data = $this->
raw(self::FIELD_NAME);
402 if (is_null($data)) {
405 $this->name = (string) $data;
419 if (is_null($this->value)) {
421 $data = $this->
raw(self::FIELD_VALUE);
422 if (is_null($data)) {
425 $this->value = $data;
440 if (is_null($this->previousValue)) {
442 $data = $this->
raw(self::FIELD_PREVIOUS_VALUE);
443 if (is_null($data)) {
446 $this->previousValue = $data;
460 if (is_null($this->deliveryId)) {
462 $data = $this->
raw(self::FIELD_DELIVERY_ID);
463 if (is_null($data)) {
466 $this->deliveryId = (string) $data;
586 #[\ReturnTypeWillChange]
597 return (
object) $data;