Total Complexity | 2 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
6 | class PipelineBuilder implements PipelineBuilderInterface |
||
7 | { |
||
8 | /** |
||
9 | * @var callable[] |
||
10 | */ |
||
11 | private $stages = []; |
||
12 | |||
13 | /** |
||
14 | * @return self |
||
15 | */ |
||
16 | 4 | public function add(callable $stage): PipelineBuilderInterface |
|
17 | { |
||
18 | 4 | $this->stages[] = $stage; |
|
19 | |||
20 | 4 | return $this; |
|
21 | } |
||
22 | |||
23 | 2 | public function build(ProcessorInterface $processor = null): PipelineInterface |
|
26 | } |
||
27 | } |
||
28 |