1 | <?php |
||
17 | final class ProcessorCollection implements ProcessorInterface, \IteratorAggregate |
||
18 | { |
||
19 | /** |
||
20 | * @var ProcessorInterface[] |
||
21 | */ |
||
22 | private $processors; |
||
23 | |||
24 | 2 | public function __construct(array $processors = array()) |
|
32 | |||
33 | /** |
||
34 | * Add processor to collection |
||
35 | * |
||
36 | * @param ProcessorInterface $processor Processor to add to collection. |
||
37 | * @return ProcessorCollection $this Fluent interface. |
||
38 | */ |
||
39 | 2 | public function add(ProcessorInterface $processor) |
|
44 | |||
45 | /** |
||
46 | * {@inheritdoc} |
||
47 | */ |
||
48 | 2 | public function process(array $files) |
|
56 | |||
57 | /** |
||
58 | * {@inheritdoc} |
||
59 | */ |
||
60 | public function getIterator() |
||
64 | } |
||
65 |