1 | <?php |
||
5 | class ArrayCollection implements CollectionInterface |
||
6 | { |
||
7 | /** |
||
8 | * @var array |
||
9 | */ |
||
10 | protected $array; |
||
11 | |||
12 | /** |
||
13 | * @param array $array |
||
14 | */ |
||
15 | public function __construct(array &$array) |
||
19 | |||
20 | /** |
||
21 | * @param mixed $element |
||
22 | * @return void |
||
23 | */ |
||
24 | public function add($element) |
||
28 | |||
29 | /** |
||
30 | * @param mixed $element |
||
31 | * @return void |
||
32 | */ |
||
33 | public function remove($element) |
||
39 | } |
||
40 |