| 1 | <?php | ||
| 10 | class NullableArray implements \ArrayAccess | ||
| 11 | { | ||
| 12 | private $data; | ||
| 13 | |||
| 14 | 125 | public function __construct(array $arr = []) | |
| 18 | |||
| 19 | /** | ||
| 20 |      * {@inheritdoc} | ||
| 21 | */ | ||
| 22 | public function offsetExists($offset) | ||
| 26 | |||
| 27 | /** | ||
| 28 |      * {@inheritdoc} | ||
| 29 | */ | ||
| 30 | 119 | public function offsetGet($offset) | |
| 39 | |||
| 40 | /** | ||
| 41 |      * {@inheritdoc} | ||
| 42 | */ | ||
| 43 | 119 | public function offsetSet($offset, $value) | |
| 51 | |||
| 52 | /** | ||
| 53 |      * {@inheritdoc} | ||
| 54 | */ | ||
| 55 | public function offsetUnset($offset) | ||
| 62 | } | ||
| 63 |