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