1 | <?php |
||
21 | class ActionCollection implements \IteratorAggregate, \Countable |
||
22 | { |
||
23 | /** |
||
24 | * @var array |
||
25 | */ |
||
26 | private $actions; |
||
27 | |||
28 | /** |
||
29 | * Constructor. |
||
30 | * |
||
31 | * @param ActionInterface ...$actions |
||
32 | */ |
||
33 | 9 | public function __construct(ActionInterface ...$actions) |
|
37 | |||
38 | /** |
||
39 | * {@inheritdoc} |
||
40 | * |
||
41 | * @return \ArrayIterator|ActionInterface[] |
||
42 | */ |
||
43 | 2 | public function getIterator(): \ArrayIterator |
|
47 | |||
48 | /** |
||
49 | * {@inheritdoc} |
||
50 | */ |
||
51 | 7 | public function count(): int |
|
55 | } |
||
56 |