@@ -6,10 +6,10 @@ |
||
6 | 6 | use function einfach\operation\response\isValidResponse; |
7 | 7 | use const einfach\operation\response\RESPONSE_TYPE_ERROR; |
8 | 8 | use const einfach\operation\response\RESPONSE_TYPE_OK; |
9 | -use einfach\operation\step\Step; |
|
10 | -use einfach\operation\step\Failure; |
|
11 | 9 | use einfach\operation\step\AbstractStep; |
12 | 10 | use einfach\operation\step\Always; |
11 | +use einfach\operation\step\Failure; |
|
12 | +use einfach\operation\step\Step; |
|
13 | 13 | use einfach\operation\step\TryCatch; |
14 | 14 | |
15 | 15 | class Railway |
@@ -33,6 +33,9 @@ discard block |
||
33 | 33 | $this->stepsQueue = []; |
34 | 34 | } |
35 | 35 | |
36 | + /** |
|
37 | + * @param string $stepName |
|
38 | + */ |
|
36 | 39 | protected function findTargetStepIndex($stepName) |
37 | 40 | { |
38 | 41 | $steps = array_column($this->stepsQueue, 'step'); |
@@ -161,6 +164,7 @@ discard block |
||
161 | 164 | |
162 | 165 | /** |
163 | 166 | * @throws \Exception |
167 | + * @param AbstractStep $step |
|
164 | 168 | */ |
165 | 169 | protected function performStep($step, &$params, $opt, $track) |
166 | 170 | { |