3 declare(strict_types=1);
21 use DateTimeImmutable;
125 if (is_null($this->
id)) {
127 $data = $this->
raw(self::FIELD_ID);
128 if (is_null($data)) {
131 $this->
id = (string) $data;
145 if (is_null($this->version)) {
147 $data = $this->
raw(self::FIELD_VERSION);
148 if (is_null($data)) {
151 $this->version = (int) $data;
165 if (is_null($this->createdAt)) {
167 $data = $this->
raw(self::FIELD_CREATED_AT);
168 if (is_null($data)) {
172 if (
false === $data) {
175 $this->createdAt = $data;
189 if (is_null($this->lastModifiedAt)) {
191 $data = $this->
raw(self::FIELD_LAST_MODIFIED_AT);
192 if (is_null($data)) {
196 if (
false === $data) {
199 $this->lastModifiedAt = $data;
213 if (is_null($this->lastModifiedBy)) {
215 $data = $this->
raw(self::FIELD_LAST_MODIFIED_BY);
216 if (is_null($data)) {
234 if (is_null($this->createdBy)) {
236 $data = $this->
raw(self::FIELD_CREATED_BY);
237 if (is_null($data)) {
255 if (is_null($this->key)) {
257 $data = $this->
raw(self::FIELD_KEY);
258 if (is_null($data)) {
261 $this->key = (string) $data;
275 if (is_null($this->destination)) {
277 $data = $this->
raw(self::FIELD_DESTINATION);
278 if (is_null($data)) {
282 $this->destination = $className::of($data);
296 if (is_null($this->triggers)) {
298 $data = $this->
raw(self::FIELD_TRIGGERS);
299 if (is_null($data)) {
318 if (is_null($this->timeoutInMs)) {
320 $data = $this->
raw(self::FIELD_TIMEOUT_IN_MS);
321 if (is_null($data)) {
324 $this->timeoutInMs = (int) $data;
412 #[\ReturnTypeWillChange]
423 return (
object) $data;