| Total Complexity | 5 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Coverage | 33.33% |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 10 | trait ArrayAccessTrait |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @param mixed $offset |
||
| 14 | * @return bool |
||
| 15 | 1 | */ |
|
| 16 | public function offsetExists($offset): bool |
||
| 19 | } |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param mixed $offset |
||
| 23 | * @return mixed |
||
| 24 | */ |
||
| 25 | public function offsetGet($offset): mixed |
||
| 26 | { |
||
| 27 | return $this->get($offset); |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param mixed $offset |
||
| 32 | * @param mixed $value |
||
| 33 | */ |
||
| 34 | public function offsetSet($offset, $value): void |
||
| 35 | { |
||
| 36 | $this->attributes->set($offset, $value); |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @param mixed $offset |
||
| 41 | */ |
||
| 42 | public function offsetUnset($offset): void |
||
| 43 | { |
||
| 44 | $this->attributes->remove($offset); |
||
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @param $name |
||
| 49 | * @return mixed |
||
| 50 | 1 | */ |
|
| 51 | public function __get($name) |
||
| 54 | } |
||
| 55 | } |
||
| 56 |