| Total Complexity | 4 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class Collection implements ArrayAccess |
||
| 11 | { |
||
| 12 | public array $elements = []; |
||
| 13 | |||
| 14 | public function offsetExists($offset): bool |
||
| 15 | { |
||
| 16 | return isset($this->elements[$offset]); |
||
| 17 | } |
||
| 18 | |||
| 19 | #[ReturnTypeWillChange] |
||
| 20 | public function offsetGet($offset) |
||
| 21 | { |
||
| 22 | return $this->elements[$offset] ?? null; |
||
| 23 | } |
||
| 24 | |||
| 25 | public function offsetSet($offset, $value): void |
||
| 28 | } |
||
| 29 | |||
| 30 | public function offsetUnset($offset): void |
||
| 33 | } |
||
| 34 | } |
||
| 35 |