3 declare(strict_types=1);
21 use DateTimeImmutable;
101 ?
string $name =
null,
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->name)) {
277 $data = $this->
raw(self::FIELD_NAME);
278 if (is_null($data)) {
281 $this->name = (string) $data;
295 if (is_null($this->description)) {
297 $data = $this->
raw(self::FIELD_DESCRIPTION);
298 if (is_null($data)) {
301 $this->description = (string) $data;
315 if (is_null($this->locations)) {
317 $data = $this->
raw(self::FIELD_LOCATIONS);
318 if (is_null($data)) {
409 #[\ReturnTypeWillChange]
420 return (
object) $data;