3 declare(strict_types=1);
25 use DateTimeImmutable;
170 if (is_null($this->
id)) {
172 $data = $this->
raw(self::FIELD_ID);
173 if (is_null($data)) {
176 $this->
id = (string) $data;
190 if (is_null($this->version)) {
192 $data = $this->
raw(self::FIELD_VERSION);
193 if (is_null($data)) {
196 $this->version = (int) $data;
210 if (is_null($this->createdAt)) {
212 $data = $this->
raw(self::FIELD_CREATED_AT);
213 if (is_null($data)) {
217 if (
false === $data) {
220 $this->createdAt = $data;
234 if (is_null($this->lastModifiedAt)) {
236 $data = $this->
raw(self::FIELD_LAST_MODIFIED_AT);
237 if (is_null($data)) {
241 if (
false === $data) {
244 $this->lastModifiedAt = $data;
258 if (is_null($this->lastModifiedBy)) {
260 $data = $this->
raw(self::FIELD_LAST_MODIFIED_BY);
261 if (is_null($data)) {
279 if (is_null($this->createdBy)) {
281 $data = $this->
raw(self::FIELD_CREATED_BY);
282 if (is_null($data)) {
301 if (is_null($this->sequenceNumber)) {
303 $data = $this->
raw(self::FIELD_SEQUENCE_NUMBER);
304 if (is_null($data)) {
307 $this->sequenceNumber = (int) $data;
321 if (is_null($this->resource)) {
323 $data = $this->
raw(self::FIELD_RESOURCE);
324 if (is_null($data)) {
328 $this->resource = $className::of($data);
342 if (is_null($this->resourceVersion)) {
344 $data = $this->
raw(self::FIELD_RESOURCE_VERSION);
345 if (is_null($data)) {
348 $this->resourceVersion = (int) $data;
362 if (is_null($this->type)) {
364 $data = $this->
raw(self::FIELD_TYPE);
365 if (is_null($data)) {
368 $this->type = (string) $data;
382 if (is_null($this->resourceUserProvidedIdentifiers)) {
384 $data = $this->
raw(self::FIELD_RESOURCE_USER_PROVIDED_IDENTIFIERS);
385 if (is_null($data)) {
403 if (is_null($this->customer)) {
405 $data = $this->
raw(self::FIELD_CUSTOMER);
406 if (is_null($data)) {
424 if (is_null($this->customerGroup)) {
426 $data = $this->
raw(self::FIELD_CUSTOMER_GROUP);
427 if (is_null($data)) {
445 if (is_null($this->oldCustomer)) {
447 $data = $this->
raw(self::FIELD_OLD_CUSTOMER);
448 if (is_null($data)) {
466 if (is_null($this->oldCustomerGroup)) {
468 $data = $this->
raw(self::FIELD_OLD_CUSTOMER_GROUP);
469 if (is_null($data)) {
593 #[\ReturnTypeWillChange]
604 return (
object) $data;