Total Complexity | 5 |
Total Lines | 50 |
Duplicated Lines | 0 % |
Coverage | 90.91% |
Changes | 0 |
1 | <?php |
||
28 | trait ArrayAccess |
||
29 | { |
||
30 | /** |
||
31 | * Offset to set |
||
32 | * |
||
33 | * @param mixed $offset |
||
34 | * @param mixed $value |
||
35 | * |
||
36 | * @throws InvalidArgumentException |
||
37 | */ |
||
38 | 2 | public function offsetSet($offset, $value): void |
|
44 | 2 | } |
|
45 | |||
46 | /** |
||
47 | * Offset to retrieve |
||
48 | * |
||
49 | * @param mixed $offset |
||
50 | * |
||
51 | * @return mixed |
||
52 | */ |
||
53 | 5 | public function offsetGet($offset) |
|
54 | { |
||
55 | 5 | return $this->doGetContainer($offset); |
|
56 | } |
||
57 | |||
58 | /** |
||
59 | * Whether a offset exists |
||
60 | * |
||
61 | * @param mixed $offset |
||
62 | * |
||
63 | * @return bool |
||
64 | */ |
||
65 | 5 | public function offsetExists($offset): bool |
|
66 | { |
||
67 | 5 | return $this->doContainsContainer($offset); |
|
68 | } |
||
69 | |||
70 | /** |
||
71 | * Offset to unset |
||
72 | * |
||
73 | * @param mixed $offset |
||
74 | */ |
||
75 | 2 | public function offsetUnset($offset): void |
|
78 | 2 | } |
|
79 | } |
||
80 |