3 declare(strict_types=1);
31 use DateTimeImmutable;
167 if (is_null($this->
id)) {
169 $data = $this->
raw(self::FIELD_ID);
170 if (is_null($data)) {
173 $this->
id = (string) $data;
187 if (is_null($this->version)) {
189 $data = $this->
raw(self::FIELD_VERSION);
190 if (is_null($data)) {
193 $this->version = (int) $data;
207 if (is_null($this->createdAt)) {
209 $data = $this->
raw(self::FIELD_CREATED_AT);
210 if (is_null($data)) {
214 if (
false === $data) {
217 $this->createdAt = $data;
231 if (is_null($this->lastModifiedAt)) {
233 $data = $this->
raw(self::FIELD_LAST_MODIFIED_AT);
234 if (is_null($data)) {
238 if (
false === $data) {
241 $this->lastModifiedAt = $data;
255 if (is_null($this->lastModifiedBy)) {
257 $data = $this->
raw(self::FIELD_LAST_MODIFIED_BY);
258 if (is_null($data)) {
276 if (is_null($this->createdBy)) {
278 $data = $this->
raw(self::FIELD_CREATED_BY);
279 if (is_null($data)) {
297 if (is_null($this->key)) {
299 $data = $this->
raw(self::FIELD_KEY);
300 if (is_null($data)) {
303 $this->key = (string) $data;
317 if (is_null($this->roles)) {
319 $data = $this->
raw(self::FIELD_ROLES);
320 if (is_null($data)) {
323 $this->roles = $data;
337 if (is_null($this->name)) {
339 $data = $this->
raw(self::FIELD_NAME);
340 if (is_null($data)) {
358 if (is_null($this->description)) {
360 $data = $this->
raw(self::FIELD_DESCRIPTION);
361 if (is_null($data)) {
379 if (is_null($this->address)) {
381 $data = $this->
raw(self::FIELD_ADDRESS);
382 if (is_null($data)) {
400 if (is_null($this->reviewRatingStatistics)) {
402 $data = $this->
raw(self::FIELD_REVIEW_RATING_STATISTICS);
403 if (is_null($data)) {
421 if (is_null($this->custom)) {
423 $data = $this->
raw(self::FIELD_CUSTOM);
424 if (is_null($data)) {
442 if (is_null($this->geoLocation)) {
444 $data = $this->
raw(self::FIELD_GEO_LOCATION);
445 if (is_null($data)) {
449 $this->geoLocation = $className::of($data);
569 #[\ReturnTypeWillChange]
580 return (
object) $data;