attributes['code'] ?? "null"; } final public function getOwnerUID(): int { return intval($this->attributes['ownerinfo_uid']); } final public function getUserUID(): int { return intval($this->attributes['user_uid']); } public function getSwitchUID(): string { return $this->attributes['switchinfo_uid']; } public function getCodeUID(): string { return $this->attributes['codeinfo_uid']; } public function getType(): string { return $this->attributes['type']; } final public function getBillingAt(): string { return $this->attributes['billing_at']; } public function getItemEntities(string $type): array { return $this->attributes[$type] ?? []; } public function setItemEntities(string $type, array $itemEntities): void { $this->attributes[$type] = $itemEntities; // $this->attributes[$type] = array_unique($this->attributes[$type], SORT_REGULAR); } }