3 declare(strict_types=1);
23 use DateTimeImmutable;
144 if (is_null($this->
id)) {
146 $data = $this->
raw(self::FIELD_ID);
147 if (is_null($data)) {
150 $this->
id = (string) $data;
164 if (is_null($this->version)) {
166 $data = $this->
raw(self::FIELD_VERSION);
167 if (is_null($data)) {
170 $this->version = (int) $data;
184 if (is_null($this->createdAt)) {
186 $data = $this->
raw(self::FIELD_CREATED_AT);
187 if (is_null($data)) {
191 if (
false === $data) {
194 $this->createdAt = $data;
208 if (is_null($this->lastModifiedAt)) {
210 $data = $this->
raw(self::FIELD_LAST_MODIFIED_AT);
211 if (is_null($data)) {
215 if (
false === $data) {
218 $this->lastModifiedAt = $data;
232 if (is_null($this->lastModifiedBy)) {
234 $data = $this->
raw(self::FIELD_LAST_MODIFIED_BY);
235 if (is_null($data)) {
253 if (is_null($this->createdBy)) {
255 $data = $this->
raw(self::FIELD_CREATED_BY);
256 if (is_null($data)) {
275 if (is_null($this->sequenceNumber)) {
277 $data = $this->
raw(self::FIELD_SEQUENCE_NUMBER);
278 if (is_null($data)) {
281 $this->sequenceNumber = (int) $data;
295 if (is_null($this->resource)) {
297 $data = $this->
raw(self::FIELD_RESOURCE);
298 if (is_null($data)) {
302 $this->resource = $className::of($data);
316 if (is_null($this->resourceVersion)) {
318 $data = $this->
raw(self::FIELD_RESOURCE_VERSION);
319 if (is_null($data)) {
322 $this->resourceVersion = (int) $data;
336 if (is_null($this->type)) {
338 $data = $this->
raw(self::FIELD_TYPE);
339 if (is_null($data)) {
342 $this->type = (string) $data;
356 if (is_null($this->resourceUserProvidedIdentifiers)) {
358 $data = $this->
raw(self::FIELD_RESOURCE_USER_PROVIDED_IDENTIFIERS);
359 if (is_null($data)) {
377 if (is_null($this->interaction)) {
379 $data = $this->
raw(self::FIELD_INTERACTION);
380 if (is_null($data)) {
480 #[\ReturnTypeWillChange]
491 return (
object) $data;