|
7 | 7 | use App\Helpers\MetaFormats\Attributes\FPost; |
8 | 8 | use App\Helpers\MetaFormats\Validators\VArray; |
9 | 9 | use App\Helpers\MetaFormats\Validators\VBool; |
10 | | -use App\Helpers\MetaFormats\Validators\VEmail; |
11 | | -use App\Helpers\MetaFormats\Validators\VMixed; |
12 | 10 | use App\Helpers\MetaFormats\Validators\VObject; |
13 | 11 | use App\Helpers\MetaFormats\Validators\VString; |
14 | 12 | use App\Helpers\MetaFormats\Validators\VUuid; |
15 | | -use ArrayAccess; |
16 | 13 |
|
| 14 | +/** |
| 15 | + * Format definition used by the GroupsPresenter. |
| 16 | + */ |
17 | 17 | #[Format(GroupFormat::class)] |
18 | | -class GroupFormat extends MetaFormat// implements ArrayAccess |
| 18 | +class GroupFormat extends MetaFormat |
19 | 19 | { |
20 | 20 | #[FPost(new VUuid(), "An identifier of the group")] |
21 | 21 | public string $id; |
@@ -71,39 +71,4 @@ class GroupFormat extends MetaFormat// implements ArrayAccess |
71 | 71 |
|
72 | 72 | #[FPost(new VArray())] |
73 | 73 | public ?array $permissionHints; |
74 | | - |
75 | | - |
76 | | - // public function offsetExists(mixed $offset): bool |
77 | | - // { |
78 | | - // return isset($this->$offset); |
79 | | - // } |
80 | | - |
81 | | - // /** |
82 | | - // * Offset to retrieve |
83 | | - // * @param mixed $offset The offset to retrieve. |
84 | | - // * @return mixed Can return all value types. |
85 | | - // */ |
86 | | - // public function offsetGet(mixed $offset): mixed |
87 | | - // { |
88 | | - // return $this->$offset ?? null; |
89 | | - // } |
90 | | - |
91 | | - // /** |
92 | | - // * Offset to set |
93 | | - // * @param mixed $offset The offset to assign the value to. |
94 | | - // * @param mixed $value The value to set. |
95 | | - // */ |
96 | | - // public function offsetSet(mixed $offset, mixed $value): void |
97 | | - // { |
98 | | - // $this->$offset = $value; |
99 | | - // } |
100 | | - |
101 | | - // /** |
102 | | - // * Offset to unset |
103 | | - // * @param mixed $offset The offset to unset. |
104 | | - // */ |
105 | | - // public function offsetUnset(mixed $offset): void |
106 | | - // { |
107 | | - // $this->$offset = null; |
108 | | - // } |
109 | 74 | } |
0 commit comments