@@ -55,7 +55,7 @@ |
||
| 55 | 55 | // pretend I am doing a query |
| 56 | 56 | // $user = DB::findById($params['id']); |
| 57 | 57 | $user = (object) ['id' => 123, 'name' => 'Eugene', 'phone' => '111111']; |
| 58 | - return ok(['model' => $user]); |
|
| 58 | + return ok(['model' => $user]); |
|
| 59 | 59 | //return error('User not found!'); |
| 60 | 60 | } |
| 61 | 61 | |
@@ -72,6 +72,9 @@ discard block |
||
| 72 | 72 | return $this->rawStep(new Wrap($callable, $signature), $opt); |
| 73 | 73 | } |
| 74 | 74 | |
| 75 | + /** |
|
| 76 | + * @param string $stepName |
|
| 77 | + */ |
|
| 75 | 78 | public function nextStepSignature(callable $callable, $stepName, $opt) : Railway |
| 76 | 79 | { |
| 77 | 80 | is_callable($callable, false, $functionName); |
@@ -102,7 +105,8 @@ discard block |
||
| 102 | 105 | |
| 103 | 106 | /** |
| 104 | 107 | * @param $params |
| 105 | - * @param $step |
|
| 108 | + * @param AbstractStep $step |
|
| 109 | + * @param string $track |
|
| 106 | 110 | * @return string |
| 107 | 111 | * @throws \Exception |
| 108 | 112 | */ |