1 | <?php |
||
16 | class ContainerCollection |
||
17 | { |
||
18 | /** |
||
19 | * @var int |
||
20 | */ |
||
21 | public $index = 0; |
||
22 | |||
23 | /** |
||
24 | * @var Container[] |
||
25 | */ |
||
26 | private $containers = []; |
||
27 | |||
28 | /** |
||
29 | * @var Container |
||
30 | */ |
||
31 | private $baseContainer; |
||
32 | |||
33 | /** |
||
34 | * @param Container $container |
||
35 | */ |
||
36 | public function __construct(Container $container) |
||
40 | |||
41 | /** |
||
42 | * @param $targetKey |
||
43 | * @param $start |
||
44 | * @param $end |
||
45 | * @return NumericDecrementer|NumericIncrementer |
||
46 | * @throws AyamlSeqInvalidTypeException |
||
47 | */ |
||
48 | public function range($targetKey, $start, $end) |
||
61 | |||
62 | /** |
||
63 | * @param $targetKey |
||
64 | * @param $from |
||
65 | * @param $to |
||
66 | * @return DatetimeDecrementer|DatetimeIncrementer |
||
67 | * @throws AyamlSeqInvalidTypeException |
||
68 | */ |
||
69 | public function between($targetKey, $from, $to) |
||
85 | |||
86 | /** |
||
87 | * @return array |
||
88 | */ |
||
89 | public function dump() |
||
98 | |||
99 | /** |
||
100 | * @param Container $container |
||
101 | */ |
||
102 | public function add(Container $container) |
||
106 | |||
107 | /** |
||
108 | * @param int|null $index |
||
109 | * @return Container |
||
110 | */ |
||
111 | public function get($index = null) |
||
121 | |||
122 | /** |
||
123 | * @return Container[] |
||
124 | */ |
||
125 | public function getAll() |
||
129 | } |
||
130 |