3 declare(strict_types=1);
25 use DateTimeImmutable;
154 if (is_null($this->
id)) {
156 $data = $this->
raw(self::FIELD_ID);
157 if (is_null($data)) {
160 $this->
id = (string) $data;
174 if (is_null($this->version)) {
176 $data = $this->
raw(self::FIELD_VERSION);
177 if (is_null($data)) {
180 $this->version = (int) $data;
194 if (is_null($this->createdAt)) {
196 $data = $this->
raw(self::FIELD_CREATED_AT);
197 if (is_null($data)) {
201 if (
false === $data) {
204 $this->createdAt = $data;
218 if (is_null($this->lastModifiedAt)) {
220 $data = $this->
raw(self::FIELD_LAST_MODIFIED_AT);
221 if (is_null($data)) {
225 if (
false === $data) {
228 $this->lastModifiedAt = $data;
242 if (is_null($this->lastModifiedBy)) {
244 $data = $this->
raw(self::FIELD_LAST_MODIFIED_BY);
245 if (is_null($data)) {
263 if (is_null($this->createdBy)) {
265 $data = $this->
raw(self::FIELD_CREATED_BY);
266 if (is_null($data)) {
285 if (is_null($this->sequenceNumber)) {
287 $data = $this->
raw(self::FIELD_SEQUENCE_NUMBER);
288 if (is_null($data)) {
291 $this->sequenceNumber = (int) $data;
305 if (is_null($this->resource)) {
307 $data = $this->
raw(self::FIELD_RESOURCE);
308 if (is_null($data)) {
312 $this->resource = $className::of($data);
326 if (is_null($this->resourceVersion)) {
328 $data = $this->
raw(self::FIELD_RESOURCE_VERSION);
329 if (is_null($data)) {
332 $this->resourceVersion = (int) $data;
346 if (is_null($this->type)) {
348 $data = $this->
raw(self::FIELD_TYPE);
349 if (is_null($data)) {
352 $this->type = (string) $data;
366 if (is_null($this->resourceUserProvidedIdentifiers)) {
368 $data = $this->
raw(self::FIELD_RESOURCE_USER_PROVIDED_IDENTIFIERS);
369 if (is_null($data)) {
387 if (is_null($this->edit)) {
389 $data = $this->
raw(self::FIELD_EDIT);
390 if (is_null($data)) {
408 if (is_null($this->result)) {
410 $data = $this->
raw(self::FIELD_RESULT);
411 if (is_null($data)) {
519 #[\ReturnTypeWillChange]
530 return (
object) $data;