3 declare(strict_types=1);
21 use DateTimeImmutable;
133 if (is_null($this->
id)) {
135 $data = $this->
raw(self::FIELD_ID);
136 if (is_null($data)) {
139 $this->
id = (string) $data;
153 if (is_null($this->version)) {
155 $data = $this->
raw(self::FIELD_VERSION);
156 if (is_null($data)) {
159 $this->version = (int) $data;
173 if (is_null($this->createdAt)) {
175 $data = $this->
raw(self::FIELD_CREATED_AT);
176 if (is_null($data)) {
180 if (
false === $data) {
183 $this->createdAt = $data;
197 if (is_null($this->lastModifiedAt)) {
199 $data = $this->
raw(self::FIELD_LAST_MODIFIED_AT);
200 if (is_null($data)) {
204 if (
false === $data) {
207 $this->lastModifiedAt = $data;
221 if (is_null($this->lastModifiedBy)) {
223 $data = $this->
raw(self::FIELD_LAST_MODIFIED_BY);
224 if (is_null($data)) {
242 if (is_null($this->createdBy)) {
244 $data = $this->
raw(self::FIELD_CREATED_BY);
245 if (is_null($data)) {
264 if (is_null($this->sequenceNumber)) {
266 $data = $this->
raw(self::FIELD_SEQUENCE_NUMBER);
267 if (is_null($data)) {
270 $this->sequenceNumber = (int) $data;
284 if (is_null($this->resource)) {
286 $data = $this->
raw(self::FIELD_RESOURCE);
287 if (is_null($data)) {
291 $this->resource = $className::of($data);
305 if (is_null($this->resourceVersion)) {
307 $data = $this->
raw(self::FIELD_RESOURCE_VERSION);
308 if (is_null($data)) {
311 $this->resourceVersion = (int) $data;
325 if (is_null($this->type)) {
327 $data = $this->
raw(self::FIELD_TYPE);
328 if (is_null($data)) {
331 $this->type = (string) $data;
345 if (is_null($this->resourceUserProvidedIdentifiers)) {
347 $data = $this->
raw(self::FIELD_RESOURCE_USER_PROVIDED_IDENTIFIERS);
348 if (is_null($data)) {
440 #[\ReturnTypeWillChange]
451 return (
object) $data;