| Total Complexity | 4 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | trait ArrayAccessible |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * {@inheritDoc} |
||
| 18 | */ |
||
| 19 | public function offsetExists(mixed $offset): bool |
||
| 20 | { |
||
| 21 | return array_key_exists($offset, $this->toArray()); |
||
|
|
|||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * {@inheritDoc} |
||
| 26 | */ |
||
| 27 | public function offsetGet(mixed $offset): mixed |
||
| 28 | { |
||
| 29 | return $this->toArray()[$offset]; |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * {@inheritDoc} |
||
| 34 | */ |
||
| 35 | public function offsetSet(mixed $offset, mixed $value): never |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * {@inheritDoc} |
||
| 42 | */ |
||
| 43 | public function offsetUnset(mixed $offset): never |
||
| 48 |