3 declare(strict_types=1);
22 use DateTimeImmutable;
143 if (is_null($this->
id)) {
145 $data = $this->
raw(self::FIELD_ID);
146 if (is_null($data)) {
149 $this->
id = (string) $data;
163 if (is_null($this->version)) {
165 $data = $this->
raw(self::FIELD_VERSION);
166 if (is_null($data)) {
169 $this->version = (int) $data;
183 if (is_null($this->createdAt)) {
185 $data = $this->
raw(self::FIELD_CREATED_AT);
186 if (is_null($data)) {
190 if (
false === $data) {
193 $this->createdAt = $data;
207 if (is_null($this->lastModifiedAt)) {
209 $data = $this->
raw(self::FIELD_LAST_MODIFIED_AT);
210 if (is_null($data)) {
214 if (
false === $data) {
217 $this->lastModifiedAt = $data;
231 if (is_null($this->lastModifiedBy)) {
233 $data = $this->
raw(self::FIELD_LAST_MODIFIED_BY);
234 if (is_null($data)) {
252 if (is_null($this->createdBy)) {
254 $data = $this->
raw(self::FIELD_CREATED_BY);
255 if (is_null($data)) {
274 if (is_null($this->sequenceNumber)) {
276 $data = $this->
raw(self::FIELD_SEQUENCE_NUMBER);
277 if (is_null($data)) {
280 $this->sequenceNumber = (int) $data;
294 if (is_null($this->resource)) {
296 $data = $this->
raw(self::FIELD_RESOURCE);
297 if (is_null($data)) {
301 $this->resource = $className::of($data);
315 if (is_null($this->resourceVersion)) {
317 $data = $this->
raw(self::FIELD_RESOURCE_VERSION);
318 if (is_null($data)) {
321 $this->resourceVersion = (int) $data;
335 if (is_null($this->type)) {
337 $data = $this->
raw(self::FIELD_TYPE);
338 if (is_null($data)) {
341 $this->type = (string) $data;
355 if (is_null($this->resourceUserProvidedIdentifiers)) {
357 $data = $this->
raw(self::FIELD_RESOURCE_USER_PROVIDED_IDENTIFIERS);
358 if (is_null($data)) {
376 if (is_null($this->associates)) {
378 $data = $this->
raw(self::FIELD_ASSOCIATES);
379 if (is_null($data)) {
478 #[\ReturnTypeWillChange]
489 return (
object) $data;