3 declare(strict_types=1);
15 use DateTimeImmutable;
80 if (is_null($this->key)) {
82 $data = $this->
raw(self::FIELD_KEY);
86 $this->key = (string) $data;
101 if (is_null($this->resourceType)) {
103 $data = $this->
raw(self::FIELD_RESOURCE_TYPE);
104 if (is_null($data)) {
107 $this->resourceType = (string) $data;
121 if (is_null($this->version)) {
123 $data = $this->
raw(self::FIELD_VERSION);
124 if (is_null($data)) {
127 $this->version = (int) $data;
141 if (is_null($this->createdAt)) {
143 $data = $this->
raw(self::FIELD_CREATED_AT);
144 if (is_null($data)) {
148 if (
false === $data) {
151 $this->createdAt = $data;
165 if (is_null($this->lastModifiedAt)) {
167 $data = $this->
raw(self::FIELD_LAST_MODIFIED_AT);
168 if (is_null($data)) {
172 if (
false === $data) {
175 $this->lastModifiedAt = $data;
223 #[\ReturnTypeWillChange]
234 return (
object) $data;