3 declare(strict_types=1);
22 use DateTimeImmutable;
151 if (is_null($this->
id)) {
153 $data = $this->
raw(self::FIELD_ID);
154 if (is_null($data)) {
157 $this->
id = (string) $data;
171 if (is_null($this->version)) {
173 $data = $this->
raw(self::FIELD_VERSION);
174 if (is_null($data)) {
177 $this->version = (int) $data;
191 if (is_null($this->createdAt)) {
193 $data = $this->
raw(self::FIELD_CREATED_AT);
194 if (is_null($data)) {
198 if (
false === $data) {
201 $this->createdAt = $data;
215 if (is_null($this->lastModifiedAt)) {
217 $data = $this->
raw(self::FIELD_LAST_MODIFIED_AT);
218 if (is_null($data)) {
222 if (
false === $data) {
225 $this->lastModifiedAt = $data;
239 if (is_null($this->lastModifiedBy)) {
241 $data = $this->
raw(self::FIELD_LAST_MODIFIED_BY);
242 if (is_null($data)) {
260 if (is_null($this->createdBy)) {
262 $data = $this->
raw(self::FIELD_CREATED_BY);
263 if (is_null($data)) {
282 if (is_null($this->sequenceNumber)) {
284 $data = $this->
raw(self::FIELD_SEQUENCE_NUMBER);
285 if (is_null($data)) {
288 $this->sequenceNumber = (int) $data;
302 if (is_null($this->resource)) {
304 $data = $this->
raw(self::FIELD_RESOURCE);
305 if (is_null($data)) {
309 $this->resource = $className::of($data);
323 if (is_null($this->resourceVersion)) {
325 $data = $this->
raw(self::FIELD_RESOURCE_VERSION);
326 if (is_null($data)) {
329 $this->resourceVersion = (int) $data;
343 if (is_null($this->type)) {
345 $data = $this->
raw(self::FIELD_TYPE);
346 if (is_null($data)) {
349 $this->type = (string) $data;
363 if (is_null($this->resourceUserProvidedIdentifiers)) {
365 $data = $this->
raw(self::FIELD_RESOURCE_USER_PROVIDED_IDENTIFIERS);
366 if (is_null($data)) {
384 if (is_null($this->tiers)) {
386 $data = $this->
raw(self::FIELD_TIERS);
387 if (is_null($data)) {
404 if (is_null($this->previousTiers)) {
406 $data = $this->
raw(self::FIELD_PREVIOUS_TIERS);
407 if (is_null($data)) {
514 #[\ReturnTypeWillChange]
525 return (
object) $data;