| 1 | <?php |
||
| 10 | trait ArrayableTrait |
||
| 11 | { |
||
| 12 | use DependsOnManagesItemsTrait; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @implements ArrayAccess |
||
| 16 | * @param $offset |
||
| 17 | * @return bool |
||
| 18 | */ |
||
| 19 | public function offsetExists($offset) |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @implements ArrayAccess |
||
| 26 | * @param $offset |
||
| 27 | * @return mixed |
||
| 28 | */ |
||
| 29 | public function offsetGet($offset) |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @implements ArrayAccess |
||
| 36 | * @param $offset |
||
| 37 | * @param $value |
||
| 38 | */ |
||
| 39 | public function offsetSet($offset, $value) |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @implements ArrayAccess |
||
| 46 | * @param $offset |
||
| 47 | */ |
||
| 48 | public function offsetUnset($offset) |
||
| 49 | { |
||
| 50 | $this->remove($offset); |
||
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @implements IteratorAggregate |
||
| 55 | */ |
||
| 56 | public function getIterator() |
||
| 60 | |||
| 61 | /** |
||
| 62 | * @implements Countable |
||
| 63 | */ |
||
| 64 | public function count() |
||
| 68 | |||
| 69 | /** |
||
| 70 | * @implements JSONSerializable |
||
| 71 | * @return array |
||
| 72 | */ |
||
| 73 | public function jsonSerialize() |
||
| 77 | } |
||
| 78 |