| @@ -80,7 +80,8 @@ | ||
| 80 | 80 | |
| 81 | 81 | /** | 
| 82 | 82 | * @param $params | 
| 83 | - * @param $step | |
| 83 | + * @param AbstractStep $step | |
| 84 | + * @param string $track | |
| 84 | 85 | * @return string | 
| 85 | 86 | * @throws \Exception | 
| 86 | 87 | */ | 
| @@ -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 | 
| @@ -10,7 +10,7 @@ discard block | ||
| 10 | 10 | public function railway() : Railway | 
| 11 | 11 |      { | 
| 12 | 12 | return (new Railway) | 
| 13 | -            ->step(function ($params) { | |
| 13 | +            ->step(function($params) { | |
| 14 | 14 |                  echo "Hey {$params['name']}. Say hello to anonymous function!"; | 
| 15 | 15 |                  //return error('Early fail'); | 
| 16 | 16 | return ok(['newParam' => 'newValue']); | 
| @@ -38,7 +38,7 @@ discard block | ||
| 38 | 38 | public function nestedRailway($params) | 
| 39 | 39 |      { | 
| 40 | 40 | return (new Railway) | 
| 41 | -            ->step(function ($params) { | |
| 41 | +            ->step(function($params) { | |
| 42 | 42 |                  //return error('Nested Railway failed!'); | 
| 43 | 43 | return ok(['nestedRwParam' => 'nestedRwValue']); | 
| 44 | 44 | }) |