3 declare(strict_types=1);
21 use DateTimeImmutable;
150 if (is_null($this->
id)) {
152 $data = $this->
raw(self::FIELD_ID);
153 if (is_null($data)) {
156 $this->
id = (string) $data;
170 if (is_null($this->version)) {
172 $data = $this->
raw(self::FIELD_VERSION);
173 if (is_null($data)) {
176 $this->version = (int) $data;
190 if (is_null($this->createdAt)) {
192 $data = $this->
raw(self::FIELD_CREATED_AT);
193 if (is_null($data)) {
197 if (
false === $data) {
200 $this->createdAt = $data;
214 if (is_null($this->lastModifiedAt)) {
216 $data = $this->
raw(self::FIELD_LAST_MODIFIED_AT);
217 if (is_null($data)) {
221 if (
false === $data) {
224 $this->lastModifiedAt = $data;
238 if (is_null($this->lastModifiedBy)) {
240 $data = $this->
raw(self::FIELD_LAST_MODIFIED_BY);
241 if (is_null($data)) {
259 if (is_null($this->createdBy)) {
261 $data = $this->
raw(self::FIELD_CREATED_BY);
262 if (is_null($data)) {
281 if (is_null($this->sequenceNumber)) {
283 $data = $this->
raw(self::FIELD_SEQUENCE_NUMBER);
284 if (is_null($data)) {
287 $this->sequenceNumber = (int) $data;
301 if (is_null($this->resource)) {
303 $data = $this->
raw(self::FIELD_RESOURCE);
304 if (is_null($data)) {
308 $this->resource = $className::of($data);
322 if (is_null($this->resourceVersion)) {
324 $data = $this->
raw(self::FIELD_RESOURCE_VERSION);
325 if (is_null($data)) {
328 $this->resourceVersion = (int) $data;
342 if (is_null($this->type)) {
344 $data = $this->
raw(self::FIELD_TYPE);
345 if (is_null($data)) {
348 $this->type = (string) $data;
362 if (is_null($this->resourceUserProvidedIdentifiers)) {
364 $data = $this->
raw(self::FIELD_RESOURCE_USER_PROVIDED_IDENTIFIERS);
365 if (is_null($data)) {
383 if (is_null($this->active)) {
385 $data = $this->
raw(self::FIELD_ACTIVE);
386 if (is_null($data)) {
389 $this->active = (bool) $data;
403 if (is_null($this->oldActive)) {
405 $data = $this->
raw(self::FIELD_OLD_ACTIVE);
406 if (is_null($data)) {
409 $this->oldActive = (bool) $data;
513 #[\ReturnTypeWillChange]
524 return (
object) $data;