| Total Complexity | 4 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | trait ArrayAccessTrait |
||
| 21 | { |
||
| 22 | public function offsetExists($offset): bool |
||
| 23 | { |
||
| 24 | return $this->has($offset); |
||
|
|
|||
| 25 | } |
||
| 26 | |||
| 27 | public function offsetGet($offset) |
||
| 28 | { |
||
| 29 | return $this->get($offset); |
||
| 30 | } |
||
| 31 | |||
| 32 | public function offsetSet($offset, $value): void |
||
| 33 | { |
||
| 34 | throw new \RuntimeException("config is immutable"); |
||
| 35 | } |
||
| 36 | |||
| 37 | public function offsetUnset($offset): void |
||
| 40 | } |
||
| 41 | } |
||
| 42 |