3 declare(strict_types=1);
23 use DateTimeImmutable;
160 if (is_null($this->
id)) {
162 $data = $this->
raw(self::FIELD_ID);
163 if (is_null($data)) {
166 $this->
id = (string) $data;
180 if (is_null($this->version)) {
182 $data = $this->
raw(self::FIELD_VERSION);
183 if (is_null($data)) {
186 $this->version = (int) $data;
200 if (is_null($this->createdAt)) {
202 $data = $this->
raw(self::FIELD_CREATED_AT);
203 if (is_null($data)) {
207 if (
false === $data) {
210 $this->createdAt = $data;
224 if (is_null($this->lastModifiedAt)) {
226 $data = $this->
raw(self::FIELD_LAST_MODIFIED_AT);
227 if (is_null($data)) {
231 if (
false === $data) {
234 $this->lastModifiedAt = $data;
248 if (is_null($this->lastModifiedBy)) {
250 $data = $this->
raw(self::FIELD_LAST_MODIFIED_BY);
251 if (is_null($data)) {
269 if (is_null($this->createdBy)) {
271 $data = $this->
raw(self::FIELD_CREATED_BY);
272 if (is_null($data)) {
291 if (is_null($this->sequenceNumber)) {
293 $data = $this->
raw(self::FIELD_SEQUENCE_NUMBER);
294 if (is_null($data)) {
297 $this->sequenceNumber = (int) $data;
311 if (is_null($this->resource)) {
313 $data = $this->
raw(self::FIELD_RESOURCE);
314 if (is_null($data)) {
318 $this->resource = $className::of($data);
332 if (is_null($this->resourceVersion)) {
334 $data = $this->
raw(self::FIELD_RESOURCE_VERSION);
335 if (is_null($data)) {
338 $this->resourceVersion = (int) $data;
352 if (is_null($this->type)) {
354 $data = $this->
raw(self::FIELD_TYPE);
355 if (is_null($data)) {
358 $this->type = (string) $data;
372 if (is_null($this->resourceUserProvidedIdentifiers)) {
374 $data = $this->
raw(self::FIELD_RESOURCE_USER_PROVIDED_IDENTIFIERS);
375 if (is_null($data)) {
393 if (is_null($this->state)) {
395 $data = $this->
raw(self::FIELD_STATE);
396 if (is_null($data)) {
414 if (is_null($this->oldState)) {
416 $data = $this->
raw(self::FIELD_OLD_STATE);
417 if (is_null($data)) {
435 if (is_null($this->force)) {
437 $data = $this->
raw(self::FIELD_FORCE);
438 if (is_null($data)) {
441 $this->force = (bool) $data;
553 #[\ReturnTypeWillChange]
564 return (
object) $data;