| Total Complexity | 5 |
| Total Lines | 50 |
| Duplicated Lines | 0 % |
| Coverage | 90.91% |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | trait ArrayAccess |
||
| 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($offset, $value): void |
|
| 41 | 2 | } |
|
| 42 | |||
| 43 | /** |
||
| 44 | * Offset to retrieve |
||
| 45 | * |
||
| 46 | * @param mixed $offset |
||
| 47 | * |
||
| 48 | * @return mixed |
||
| 49 | */ |
||
| 50 | 5 | public function offsetGet($offset) |
|
| 51 | { |
||
| 52 | 5 | return $this->doGetContainer($offset); |
|
| 53 | } |
||
| 54 | |||
| 55 | /** |
||
| 56 | * Whether a offset exists |
||
| 57 | * |
||
| 58 | * @param mixed $offset |
||
| 59 | * |
||
| 60 | * @return bool |
||
| 61 | */ |
||
| 62 | 5 | public function offsetExists($offset): bool |
|
| 65 | } |
||
| 66 | |||
| 67 | /** |
||
| 68 | * Offset to unset |
||
| 69 | * |
||
| 70 | * @param mixed $offset |
||
| 71 | */ |
||
| 72 | 2 | public function offsetUnset($offset): void |
|
| 77 |