3 declare(strict_types=1);
21 use DateTimeImmutable;
129 ?
string $name =
null,
158 if (is_null($this->
id)) {
160 $data = $this->
raw(self::FIELD_ID);
161 if (is_null($data)) {
164 $this->
id = (string) $data;
178 if (is_null($this->version)) {
180 $data = $this->
raw(self::FIELD_VERSION);
181 if (is_null($data)) {
184 $this->version = (int) $data;
198 if (is_null($this->createdAt)) {
200 $data = $this->
raw(self::FIELD_CREATED_AT);
201 if (is_null($data)) {
205 if (
false === $data) {
208 $this->createdAt = $data;
222 if (is_null($this->lastModifiedAt)) {
224 $data = $this->
raw(self::FIELD_LAST_MODIFIED_AT);
225 if (is_null($data)) {
229 if (
false === $data) {
232 $this->lastModifiedAt = $data;
246 if (is_null($this->lastModifiedBy)) {
248 $data = $this->
raw(self::FIELD_LAST_MODIFIED_BY);
249 if (is_null($data)) {
267 if (is_null($this->createdBy)) {
269 $data = $this->
raw(self::FIELD_CREATED_BY);
270 if (is_null($data)) {
289 if (is_null($this->sequenceNumber)) {
291 $data = $this->
raw(self::FIELD_SEQUENCE_NUMBER);
292 if (is_null($data)) {
295 $this->sequenceNumber = (int) $data;
309 if (is_null($this->resource)) {
311 $data = $this->
raw(self::FIELD_RESOURCE);
312 if (is_null($data)) {
316 $this->resource = $className::of($data);
330 if (is_null($this->resourceVersion)) {
332 $data = $this->
raw(self::FIELD_RESOURCE_VERSION);
333 if (is_null($data)) {
336 $this->resourceVersion = (int) $data;
350 if (is_null($this->type)) {
352 $data = $this->
raw(self::FIELD_TYPE);
353 if (is_null($data)) {
356 $this->type = (string) $data;
370 if (is_null($this->resourceUserProvidedIdentifiers)) {
372 $data = $this->
raw(self::FIELD_RESOURCE_USER_PROVIDED_IDENTIFIERS);
373 if (is_null($data)) {
391 if (is_null($this->name)) {
393 $data = $this->
raw(self::FIELD_NAME);
394 if (is_null($data)) {
397 $this->name = (string) $data;
411 if (is_null($this->value)) {
413 $data = $this->
raw(self::FIELD_VALUE);
414 if (is_null($data)) {
417 $this->value = $data;
431 if (is_null($this->deliveryId)) {
433 $data = $this->
raw(self::FIELD_DELIVERY_ID);
434 if (is_null($data)) {
437 $this->deliveryId = (string) $data;
549 #[\ReturnTypeWillChange]
560 return (
object) $data;