3 declare(strict_types=1);
23 use DateTimeImmutable;
110 ?
string $name =
null,
135 if (is_null($this->
id)) {
137 $data = $this->
raw(self::FIELD_ID);
138 if (is_null($data)) {
141 $this->
id = (string) $data;
155 if (is_null($this->version)) {
157 $data = $this->
raw(self::FIELD_VERSION);
158 if (is_null($data)) {
161 $this->version = (int) $data;
175 if (is_null($this->createdAt)) {
177 $data = $this->
raw(self::FIELD_CREATED_AT);
178 if (is_null($data)) {
182 if (
false === $data) {
185 $this->createdAt = $data;
199 if (is_null($this->lastModifiedAt)) {
201 $data = $this->
raw(self::FIELD_LAST_MODIFIED_AT);
202 if (is_null($data)) {
206 if (
false === $data) {
209 $this->lastModifiedAt = $data;
223 if (is_null($this->lastModifiedBy)) {
225 $data = $this->
raw(self::FIELD_LAST_MODIFIED_BY);
226 if (is_null($data)) {
244 if (is_null($this->createdBy)) {
246 $data = $this->
raw(self::FIELD_CREATED_BY);
247 if (is_null($data)) {
265 if (is_null($this->key)) {
267 $data = $this->
raw(self::FIELD_KEY);
268 if (is_null($data)) {
271 $this->key = (string) $data;
285 if (is_null($this->buyerAssignable)) {
287 $data = $this->
raw(self::FIELD_BUYER_ASSIGNABLE);
288 if (is_null($data)) {
291 $this->buyerAssignable = (bool) $data;
305 if (is_null($this->name)) {
307 $data = $this->
raw(self::FIELD_NAME);
308 if (is_null($data)) {
311 $this->name = (string) $data;
325 if (is_null($this->permissions)) {
327 $data = $this->
raw(self::FIELD_PERMISSIONS);
328 if (is_null($data)) {
331 $this->permissions = $data;
345 if (is_null($this->custom)) {
347 $data = $this->
raw(self::FIELD_CUSTOM);
348 if (is_null($data)) {
448 #[\ReturnTypeWillChange]
459 return (
object) $data;