3declare(strict_types=1);
127 if (is_null($this->
id)) {
129 $data = $this->
raw(self::FIELD_ID);
130 if (is_null($data)) {
133 $this->
id = (string) $data;
147 if (is_null($this->version)) {
149 $data = $this->
raw(self::FIELD_VERSION);
150 if (is_null($data)) {
153 $this->version = (int) $data;
167 if (is_null($this->createdAt)) {
169 $data = $this->
raw(self::FIELD_CREATED_AT);
170 if (is_null($data)) {
173 $data = DateTimeImmutable::createFromFormat(MapperFactory::DATETIME_FORMAT, $data);
174 if (
false === $data) {
177 $this->createdAt = $data;
191 if (is_null($this->lastModifiedAt)) {
193 $data = $this->
raw(self::FIELD_LAST_MODIFIED_AT);
194 if (is_null($data)) {
197 $data = DateTimeImmutable::createFromFormat(MapperFactory::DATETIME_FORMAT, $data);
198 if (
false === $data) {
201 $this->lastModifiedAt = $data;
215 if (is_null($this->lastModifiedBy)) {
217 $data = $this->
raw(self::FIELD_LAST_MODIFIED_BY);
218 if (is_null($data)) {
222 $this->lastModifiedBy = LastModifiedByModel::of($data);
236 if (is_null($this->createdBy)) {
238 $data = $this->
raw(self::FIELD_CREATED_BY);
239 if (is_null($data)) {
243 $this->createdBy = CreatedByModel::of($data);
257 if (is_null($this->name)) {
259 $data = $this->
raw(self::FIELD_NAME);
260 if (is_null($data)) {
264 $this->name = LocalizedStringModel::of($data);
278 if (is_null($this->description)) {
280 $data = $this->
raw(self::FIELD_DESCRIPTION);
281 if (is_null($data)) {
285 $this->description = LocalizedStringModel::of($data);
299 if (is_null($this->attributes)) {
301 $data = $this->
raw(self::FIELD_ATTRIBUTES);
302 if (is_null($data)) {
319 if (is_null($this->key)) {
321 $data = $this->
raw(self::FIELD_KEY);
322 if (is_null($data)) {
325 $this->key = (string) $data;
413 #[\ReturnTypeWillChange]
424 return (
object) $data;