3 declare(strict_types=1);
24 use DateTimeImmutable;
153 if (is_null($this->
id)) {
155 $data = $this->
raw(self::FIELD_ID);
156 if (is_null($data)) {
159 $this->
id = (string) $data;
173 if (is_null($this->version)) {
175 $data = $this->
raw(self::FIELD_VERSION);
176 if (is_null($data)) {
179 $this->version = (int) $data;
193 if (is_null($this->createdAt)) {
195 $data = $this->
raw(self::FIELD_CREATED_AT);
196 if (is_null($data)) {
200 if (
false === $data) {
203 $this->createdAt = $data;
217 if (is_null($this->lastModifiedAt)) {
219 $data = $this->
raw(self::FIELD_LAST_MODIFIED_AT);
220 if (is_null($data)) {
224 if (
false === $data) {
227 $this->lastModifiedAt = $data;
241 if (is_null($this->lastModifiedBy)) {
243 $data = $this->
raw(self::FIELD_LAST_MODIFIED_BY);
244 if (is_null($data)) {
262 if (is_null($this->createdBy)) {
264 $data = $this->
raw(self::FIELD_CREATED_BY);
265 if (is_null($data)) {
284 if (is_null($this->sequenceNumber)) {
286 $data = $this->
raw(self::FIELD_SEQUENCE_NUMBER);
287 if (is_null($data)) {
290 $this->sequenceNumber = (int) $data;
304 if (is_null($this->resource)) {
306 $data = $this->
raw(self::FIELD_RESOURCE);
307 if (is_null($data)) {
311 $this->resource = $className::of($data);
325 if (is_null($this->resourceVersion)) {
327 $data = $this->
raw(self::FIELD_RESOURCE_VERSION);
328 if (is_null($data)) {
331 $this->resourceVersion = (int) $data;
345 if (is_null($this->type)) {
347 $data = $this->
raw(self::FIELD_TYPE);
348 if (is_null($data)) {
351 $this->type = (string) $data;
365 if (is_null($this->resourceUserProvidedIdentifiers)) {
367 $data = $this->
raw(self::FIELD_RESOURCE_USER_PROVIDED_IDENTIFIERS);
368 if (is_null($data)) {
386 if (is_null($this->name)) {
388 $data = $this->
raw(self::FIELD_NAME);
389 if (is_null($data)) {
407 if (is_null($this->nameAllLocales)) {
409 $data = $this->
raw(self::FIELD_NAME_ALL_LOCALES);
410 if (is_null($data)) {
517 #[\ReturnTypeWillChange]
528 return (
object) $data;