| 1 | <?php |
||
| 4 | class ForkCollection implements \ArrayAccess |
||
| 5 | { |
||
| 6 | /** @var \Ackintosh\Snidel\Fork[] */ |
||
| 7 | private $forks = array(); |
||
| 8 | |||
| 9 | /** |
||
| 10 | * @param \Ackintosh\Snidel\Fork[] |
||
| 11 | */ |
||
| 12 | public function __construct($forks) |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @return array |
||
| 21 | */ |
||
| 22 | public function toArray() |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @param mixed $offset |
||
| 34 | * @return bool |
||
| 35 | */ |
||
| 36 | public function offsetExists($offset) |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @param mixed $offset |
||
| 47 | * @return mixed |
||
| 48 | */ |
||
| 49 | public function offsetGet($offset) |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @param mixed $offset |
||
| 60 | * @return void |
||
| 61 | */ |
||
| 62 | public function offsetSet($offset, $value) |
||
| 66 | |||
| 67 | /** |
||
| 68 | * @param mixed $offset |
||
| 69 | * @return void |
||
| 70 | */ |
||
| 71 | public function offsetUnset($offset) |
||
| 75 | } |
||
| 76 |