1 | <?php |
||
8 | class AbstractCollection extends \ArrayObject |
||
9 | { |
||
10 | protected $allowedClass; |
||
11 | |||
12 | /** |
||
13 | * AbstractCollection constructor. |
||
14 | * @param array $input |
||
15 | * @param int $flags |
||
16 | * @param string $iterator_class |
||
17 | */ |
||
18 | 83 | public function __construct($input = array(), $flags = 0, $iterator_class = "ArrayIterator") |
|
28 | |||
29 | /** |
||
30 | * @param mixed $value |
||
31 | */ |
||
32 | public function append($value) |
||
40 | |||
41 | /** |
||
42 | * @param mixed $input |
||
43 | * @return array the old array |
||
44 | */ |
||
45 | 1 | public function exchangeArray($input) |
|
55 | |||
56 | /** |
||
57 | * @param mixed $index |
||
58 | * @param mixed $value |
||
59 | */ |
||
60 | 19 | public function offsetSet($index, $value) |
|
68 | |||
69 | 83 | protected function isValidElement($value) |
|
73 | |||
74 | 4 | protected function throwInvalid($value) |
|
78 | |||
79 | /** |
||
80 | * Allow the class to be serialized to php using var_export |
||
81 | * @param array $data |
||
82 | * @return static |
||
83 | */ |
||
84 | public static function __set_state(array $data) |
||
88 | } |
||
89 |