1 | <?php |
||
5 | class ChainRunner extends ProcessCollection |
||
6 | { |
||
7 | /** |
||
8 | * @var DecoratorFactoryInterface |
||
9 | */ |
||
10 | private $decoratorFactory; |
||
11 | |||
12 | /** |
||
13 | * @param ChainProcessInterface[] $processes |
||
14 | * @param DecoratorFactoryInterface|null $decoratorFactory |
||
15 | */ |
||
16 | 8 | public function __construct(array $processes, DecoratorFactoryInterface $decoratorFactory = null) |
|
21 | |||
22 | /** |
||
23 | * @param ChainContext $context |
||
24 | * |
||
25 | * @return ChainContext |
||
26 | */ |
||
27 | 8 | public function run(ChainContext $context = null) |
|
37 | |||
38 | /** |
||
39 | * @return ChainProcessInterface |
||
40 | */ |
||
41 | 8 | public function getHead() |
|
45 | |||
46 | /** |
||
47 | * @return ChainProcessInterface[] |
||
48 | */ |
||
49 | 8 | public function getDecoratedProcesses() |
|
66 | } |
||
67 |