| Total Complexity | 4 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Coverage | 20% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | trait ArrayAccessTrait |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @param mixed $offset |
||
| 16 | * @return bool |
||
| 17 | */ |
||
| 18 | public function offsetExists($offset): bool |
||
| 19 | { |
||
| 20 | return $this->has($offset); |
||
|
|
|||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param mixed $offset |
||
| 25 | * @return Route|null |
||
| 26 | 1 | */ |
|
| 27 | public function offsetGet($offset): mixed |
||
| 28 | 1 | { |
|
| 29 | return $this->get($offset); |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @param mixed $offset |
||
| 34 | * @param mixed $value |
||
| 35 | */ |
||
| 36 | public function offsetSet($offset, $value): void |
||
| 37 | { |
||
| 38 | $this->add($offset, $value); |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @param mixed $offset |
||
| 43 | */ |
||
| 44 | public function offsetUnset($offset): void |
||
| 47 | } |
||
| 48 | } |
||
| 49 |