| Total Complexity | 5 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | class Collection implements \ArrayAccess |
||
| 6 | { |
||
| 7 | private $attributes; |
||
| 8 | |||
| 9 | public function __construct(array $attributes) |
||
| 12 | } |
||
| 13 | |||
| 14 | public function offsetExists($offset): bool |
||
| 17 | } |
||
| 18 | |||
| 19 | public function offsetGet($offset) |
||
| 20 | { |
||
| 21 | return $this->attributes[$offset]; |
||
| 22 | } |
||
| 23 | |||
| 24 | public function offsetSet($offset, $value) |
||
| 27 | } |
||
| 28 | |||
| 29 | public function offsetUnset($offset) |
||
| 32 | } |
||
| 33 | } |
||
| 34 |