3 declare(strict_types=1);
26 use DateTimeImmutable;
146 if (is_null($this->
id)) {
148 $data = $this->
raw(self::FIELD_ID);
149 if (is_null($data)) {
152 $this->
id = (string) $data;
166 if (is_null($this->version)) {
168 $data = $this->
raw(self::FIELD_VERSION);
169 if (is_null($data)) {
172 $this->version = (int) $data;
186 if (is_null($this->createdAt)) {
188 $data = $this->
raw(self::FIELD_CREATED_AT);
189 if (is_null($data)) {
193 if (
false === $data) {
196 $this->createdAt = $data;
210 if (is_null($this->lastModifiedAt)) {
212 $data = $this->
raw(self::FIELD_LAST_MODIFIED_AT);
213 if (is_null($data)) {
217 if (
false === $data) {
220 $this->lastModifiedAt = $data;
234 if (is_null($this->key)) {
236 $data = $this->
raw(self::FIELD_KEY);
237 if (is_null($data)) {
240 $this->key = (string) $data;
254 if (is_null($this->resource)) {
256 $data = $this->
raw(self::FIELD_RESOURCE);
257 if (is_null($data)) {
275 if (is_null($this->stagedActions)) {
277 $data = $this->
raw(self::FIELD_STAGED_ACTIONS);
278 if (is_null($data)) {
296 if (is_null($this->result)) {
298 $data = $this->
raw(self::FIELD_RESULT);
299 if (is_null($data)) {
303 $this->result = $className::of($data);
317 if (is_null($this->comment)) {
319 $data = $this->
raw(self::FIELD_COMMENT);
320 if (is_null($data)) {
323 $this->comment = (string) $data;
337 if (is_null($this->custom)) {
339 $data = $this->
raw(self::FIELD_CUSTOM);
340 if (is_null($data)) {
358 if (is_null($this->lastModifiedBy)) {
360 $data = $this->
raw(self::FIELD_LAST_MODIFIED_BY);
361 if (is_null($data)) {
379 if (is_null($this->createdBy)) {
381 $data = $this->
raw(self::FIELD_CREATED_BY);
382 if (is_null($data)) {
490 #[\ReturnTypeWillChange]
501 return (
object) $data;