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