1 | <?php |
||
5 | class Pipeline implements PipelineInterface |
||
6 | { |
||
7 | /** |
||
8 | * @var PipelineStepInterface[] |
||
9 | */ |
||
10 | private $stepList; |
||
11 | |||
12 | /** |
||
13 | * @param PipelineStepInterface[] $stepList |
||
14 | */ |
||
15 | 5 | public function __construct(array $stepList) |
|
19 | |||
20 | /** |
||
21 | * @param PipelineStageContextInterface $context |
||
22 | */ |
||
23 | 3 | public function invoke(PipelineStageContextInterface $context) |
|
27 | |||
28 | /** |
||
29 | * @param PipelineStageContextInterface $context |
||
30 | * @param int $currentIndex |
||
31 | */ |
||
32 | 3 | private function invokeNext(PipelineStageContextInterface $context, $currentIndex) |
|
56 | } |
||
57 |