3 declare(strict_types=1);
21 use DateTimeImmutable;
142 if (is_null($this->
id)) {
144 $data = $this->
raw(self::FIELD_ID);
145 if (is_null($data)) {
148 $this->
id = (string) $data;
162 if (is_null($this->version)) {
164 $data = $this->
raw(self::FIELD_VERSION);
165 if (is_null($data)) {
168 $this->version = (int) $data;
182 if (is_null($this->createdAt)) {
184 $data = $this->
raw(self::FIELD_CREATED_AT);
185 if (is_null($data)) {
189 if (
false === $data) {
192 $this->createdAt = $data;
206 if (is_null($this->lastModifiedAt)) {
208 $data = $this->
raw(self::FIELD_LAST_MODIFIED_AT);
209 if (is_null($data)) {
213 if (
false === $data) {
216 $this->lastModifiedAt = $data;
230 if (is_null($this->lastModifiedBy)) {
232 $data = $this->
raw(self::FIELD_LAST_MODIFIED_BY);
233 if (is_null($data)) {
251 if (is_null($this->createdBy)) {
253 $data = $this->
raw(self::FIELD_CREATED_BY);
254 if (is_null($data)) {
273 if (is_null($this->sequenceNumber)) {
275 $data = $this->
raw(self::FIELD_SEQUENCE_NUMBER);
276 if (is_null($data)) {
279 $this->sequenceNumber = (int) $data;
293 if (is_null($this->resource)) {
295 $data = $this->
raw(self::FIELD_RESOURCE);
296 if (is_null($data)) {
300 $this->resource = $className::of($data);
314 if (is_null($this->resourceVersion)) {
316 $data = $this->
raw(self::FIELD_RESOURCE_VERSION);
317 if (is_null($data)) {
320 $this->resourceVersion = (int) $data;
334 if (is_null($this->type)) {
336 $data = $this->
raw(self::FIELD_TYPE);
337 if (is_null($data)) {
340 $this->type = (string) $data;
354 if (is_null($this->resourceUserProvidedIdentifiers)) {
356 $data = $this->
raw(self::FIELD_RESOURCE_USER_PROVIDED_IDENTIFIERS);
357 if (is_null($data)) {
375 if (is_null($this->lastName)) {
377 $data = $this->
raw(self::FIELD_LAST_NAME);
378 if (is_null($data)) {
381 $this->lastName = (string) $data;
477 #[\ReturnTypeWillChange]
488 return (
object) $data;