3 declare(strict_types=1);
23 use DateTimeImmutable;
152 if (is_null($this->
id)) {
154 $data = $this->
raw(self::FIELD_ID);
155 if (is_null($data)) {
158 $this->
id = (string) $data;
172 if (is_null($this->version)) {
174 $data = $this->
raw(self::FIELD_VERSION);
175 if (is_null($data)) {
178 $this->version = (int) $data;
192 if (is_null($this->createdAt)) {
194 $data = $this->
raw(self::FIELD_CREATED_AT);
195 if (is_null($data)) {
199 if (
false === $data) {
202 $this->createdAt = $data;
216 if (is_null($this->lastModifiedAt)) {
218 $data = $this->
raw(self::FIELD_LAST_MODIFIED_AT);
219 if (is_null($data)) {
223 if (
false === $data) {
226 $this->lastModifiedAt = $data;
240 if (is_null($this->lastModifiedBy)) {
242 $data = $this->
raw(self::FIELD_LAST_MODIFIED_BY);
243 if (is_null($data)) {
261 if (is_null($this->createdBy)) {
263 $data = $this->
raw(self::FIELD_CREATED_BY);
264 if (is_null($data)) {
283 if (is_null($this->sequenceNumber)) {
285 $data = $this->
raw(self::FIELD_SEQUENCE_NUMBER);
286 if (is_null($data)) {
289 $this->sequenceNumber = (int) $data;
303 if (is_null($this->resource)) {
305 $data = $this->
raw(self::FIELD_RESOURCE);
306 if (is_null($data)) {
310 $this->resource = $className::of($data);
324 if (is_null($this->resourceVersion)) {
326 $data = $this->
raw(self::FIELD_RESOURCE_VERSION);
327 if (is_null($data)) {
330 $this->resourceVersion = (int) $data;
344 if (is_null($this->type)) {
346 $data = $this->
raw(self::FIELD_TYPE);
347 if (is_null($data)) {
350 $this->type = (string) $data;
364 if (is_null($this->resourceUserProvidedIdentifiers)) {
366 $data = $this->
raw(self::FIELD_RESOURCE_USER_PROVIDED_IDENTIFIERS);
367 if (is_null($data)) {
385 if (is_null($this->approvers)) {
387 $data = $this->
raw(self::FIELD_APPROVERS);
388 if (is_null($data)) {
406 if (is_null($this->oldApprovers)) {
408 $data = $this->
raw(self::FIELD_OLD_APPROVERS);
409 if (is_null($data)) {
517 #[\ReturnTypeWillChange]
528 return (
object) $data;