| 1 | <?php |
||
| 15 | trait ArrayAccessTrait |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * Test if offset exists in collection |
||
| 19 | * |
||
| 20 | * @param $offset |
||
| 21 | * @return bool |
||
| 22 | */ |
||
| 23 | 11 | public function offsetExists($offset) |
|
| 27 | |||
| 28 | /** |
||
| 29 | * Return collection element at $offset |
||
| 30 | * |
||
| 31 | * @return mixed |
||
| 32 | */ |
||
| 33 | 9 | public function offsetGet($offset) |
|
| 43 | |||
| 44 | /** |
||
| 45 | * Collection offset to set |
||
| 46 | * |
||
| 47 | * @param mixed $offset |
||
| 48 | * @param mixed $value |
||
| 49 | * @return void |
||
| 50 | */ |
||
| 51 | 3 | public function offsetSet($offset, $value) |
|
| 55 | |||
| 56 | /** |
||
| 57 | * Collection offset to unset |
||
| 58 | * |
||
| 59 | * @param mixed $offset |
||
| 60 | * @return void |
||
| 61 | */ |
||
| 62 | 2 | public function offsetUnset($offset) |
|
| 66 | } |
||
| 67 |