1 | <?php |
||
7 | class PipelineModifications |
||
8 | { |
||
9 | /** |
||
10 | * @var StepRegistration[] |
||
11 | */ |
||
12 | private $additions = []; |
||
13 | |||
14 | /** |
||
15 | * @var StepRemoval[] |
||
16 | */ |
||
17 | private $removals = []; |
||
18 | |||
19 | /** |
||
20 | * @var StepReplacement[] |
||
21 | */ |
||
22 | private $replacements = []; |
||
23 | |||
24 | /** |
||
25 | * @param string $stepId |
||
26 | * |
||
27 | * @return StepRemoval |
||
28 | */ |
||
29 | 1 | public function removeStep($stepId) |
|
35 | |||
36 | /** |
||
37 | * @param string $stepId |
||
38 | * @param string $stepFqcn |
||
39 | * @param callable|null $factory |
||
40 | * @param string|null $description |
||
41 | * |
||
42 | * @return StepReplacement |
||
43 | */ |
||
44 | 2 | public function replaceStep($stepId, $stepFqcn, callable $factory = null, $description = null) |
|
50 | |||
51 | /** |
||
52 | * @param string $stepId |
||
53 | * @param string $stepFqcn |
||
54 | * @param callable|null $factory |
||
55 | * @param string|null $description |
||
56 | * |
||
57 | * @return StepRegistration |
||
58 | */ |
||
59 | 2 | public function registerStep($stepId, $stepFqcn, callable $factory = null, $description = null) |
|
65 | |||
66 | /** |
||
67 | * @param BuilderInterface $builder |
||
68 | */ |
||
69 | 1 | public function registerStepsInBuilder(BuilderInterface $builder) |
|
79 | |||
80 | /** |
||
81 | * @return StepRegistration[] |
||
82 | */ |
||
83 | 1 | public function getAdditions() |
|
87 | |||
88 | /** |
||
89 | * @return StepRemoval[] |
||
90 | */ |
||
91 | 1 | public function getRemovals() |
|
95 | |||
96 | /** |
||
97 | * @return StepReplacement[] |
||
98 | */ |
||
99 | 1 | public function getReplacements() |
|
103 | } |
||
104 |