| Total Complexity | 5 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | trait ArrayAccess |
||
| 6 | { |
||
| 7 | public function offsetSet($offset, $value): void |
||
| 8 | { |
||
| 9 | if (is_null($offset)) { |
||
| 10 | throw new \Exception('Offset cannot be null'); |
||
| 11 | } else { |
||
| 12 | $this->set($offset, $value); |
||
|
|
|||
| 13 | } |
||
| 14 | } |
||
| 15 | |||
| 16 | public function offsetExists($offset): bool |
||
| 17 | { |
||
| 18 | return $this->isset($offset); |
||
| 19 | } |
||
| 20 | |||
| 21 | public function offsetUnset($offset): void |
||
| 22 | { |
||
| 23 | $this->unset($offset); |
||
| 24 | } |
||
| 25 | |||
| 26 | public function offsetGet($offset): mixed |
||
| 29 | } |
||
| 30 | } |
||
| 31 |