3 declare(strict_types=1);
21 use DateTimeImmutable;
134 if (is_null($this->
id)) {
136 $data = $this->
raw(self::FIELD_ID);
137 if (is_null($data)) {
140 $this->
id = (string) $data;
154 if (is_null($this->version)) {
156 $data = $this->
raw(self::FIELD_VERSION);
157 if (is_null($data)) {
160 $this->version = (int) $data;
174 if (is_null($this->createdAt)) {
176 $data = $this->
raw(self::FIELD_CREATED_AT);
177 if (is_null($data)) {
181 if (
false === $data) {
184 $this->createdAt = $data;
198 if (is_null($this->lastModifiedAt)) {
200 $data = $this->
raw(self::FIELD_LAST_MODIFIED_AT);
201 if (is_null($data)) {
205 if (
false === $data) {
208 $this->lastModifiedAt = $data;
222 if (is_null($this->lastModifiedBy)) {
224 $data = $this->
raw(self::FIELD_LAST_MODIFIED_BY);
225 if (is_null($data)) {
243 if (is_null($this->createdBy)) {
245 $data = $this->
raw(self::FIELD_CREATED_BY);
246 if (is_null($data)) {
265 if (is_null($this->sequenceNumber)) {
267 $data = $this->
raw(self::FIELD_SEQUENCE_NUMBER);
268 if (is_null($data)) {
271 $this->sequenceNumber = (int) $data;
285 if (is_null($this->resource)) {
287 $data = $this->
raw(self::FIELD_RESOURCE);
288 if (is_null($data)) {
292 $this->resource = $className::of($data);
306 if (is_null($this->resourceVersion)) {
308 $data = $this->
raw(self::FIELD_RESOURCE_VERSION);
309 if (is_null($data)) {
312 $this->resourceVersion = (int) $data;
326 if (is_null($this->type)) {
328 $data = $this->
raw(self::FIELD_TYPE);
329 if (is_null($data)) {
332 $this->type = (string) $data;
346 if (is_null($this->resourceUserProvidedIdentifiers)) {
348 $data = $this->
raw(self::FIELD_RESOURCE_USER_PROVIDED_IDENTIFIERS);
349 if (is_null($data)) {
441 #[\ReturnTypeWillChange]
452 return (
object) $data;