Total Complexity | 5 |
Total Lines | 52 |
Duplicated Lines | 0 % |
Coverage | 90% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | trait ArrayAccess |
||
24 | { |
||
25 | use Container; |
||
26 | |||
27 | /** |
||
28 | * Offset to set |
||
29 | * |
||
30 | * @param mixed $offset |
||
31 | * @param mixed $value |
||
32 | * |
||
33 | * @throws InvalidArgumentException |
||
34 | */ |
||
35 | 2 | public function offsetSet(mixed $offset, mixed $value): void |
|
41 | } |
||
42 | |||
43 | /** |
||
44 | * Offset to retrieve |
||
45 | * |
||
46 | * @param mixed $offset |
||
47 | * |
||
48 | * @return mixed |
||
49 | */ |
||
50 | 2 | public function offsetGet(mixed $offset): mixed |
|
53 | } |
||
54 | |||
55 | /** |
||
56 | * Whether an offset exists |
||
57 | * |
||
58 | * @param mixed $offset |
||
59 | * |
||
60 | * @return bool |
||
61 | */ |
||
62 | 2 | public function offsetExists(mixed $offset): bool |
|
65 | } |
||
66 | |||
67 | /** |
||
68 | * Offset to unset |
||
69 | * |
||
70 | * @param mixed $offset |
||
71 | */ |
||
72 | 2 | public function offsetUnset(mixed $offset): void |
|
77 |