3 declare(strict_types=1);
23 use DateTimeImmutable;
127 ?
string $type =
null,
159 if (is_null($this->
id)) {
161 $data = $this->
raw(self::FIELD_ID);
162 if (is_null($data)) {
165 $this->
id = (string) $data;
179 if (is_null($this->version)) {
181 $data = $this->
raw(self::FIELD_VERSION);
182 if (is_null($data)) {
185 $this->version = (int) $data;
199 if (is_null($this->createdAt)) {
201 $data = $this->
raw(self::FIELD_CREATED_AT);
202 if (is_null($data)) {
206 if (
false === $data) {
209 $this->createdAt = $data;
223 if (is_null($this->lastModifiedAt)) {
225 $data = $this->
raw(self::FIELD_LAST_MODIFIED_AT);
226 if (is_null($data)) {
230 if (
false === $data) {
233 $this->lastModifiedAt = $data;
247 if (is_null($this->lastModifiedBy)) {
249 $data = $this->
raw(self::FIELD_LAST_MODIFIED_BY);
250 if (is_null($data)) {
268 if (is_null($this->createdBy)) {
270 $data = $this->
raw(self::FIELD_CREATED_BY);
271 if (is_null($data)) {
289 if (is_null($this->key)) {
291 $data = $this->
raw(self::FIELD_KEY);
292 if (is_null($data)) {
295 $this->key = (string) $data;
309 if (is_null($this->type)) {
311 $data = $this->
raw(self::FIELD_TYPE);
312 if (is_null($data)) {
315 $this->type = (string) $data;
329 if (is_null($this->name)) {
331 $data = $this->
raw(self::FIELD_NAME);
332 if (is_null($data)) {
350 if (is_null($this->description)) {
352 $data = $this->
raw(self::FIELD_DESCRIPTION);
353 if (is_null($data)) {
371 if (is_null($this->initial)) {
373 $data = $this->
raw(self::FIELD_INITIAL);
374 if (is_null($data)) {
377 $this->initial = (bool) $data;
391 if (is_null($this->builtIn)) {
393 $data = $this->
raw(self::FIELD_BUILT_IN);
394 if (is_null($data)) {
397 $this->builtIn = (bool) $data;
411 if (is_null($this->roles)) {
413 $data = $this->
raw(self::FIELD_ROLES);
414 if (is_null($data)) {
417 $this->roles = $data;
435 if (is_null($this->transitions)) {
437 $data = $this->
raw(self::FIELD_TRANSITIONS);
438 if (is_null($data)) {
561 #[\ReturnTypeWillChange]
572 return (
object) $data;