1 | <?php |
||
21 | class FormObjectSteps |
||
22 | { |
||
23 | /** |
||
24 | * @var FormObject |
||
25 | */ |
||
26 | protected $formObject; |
||
27 | |||
28 | /** |
||
29 | * @param FormObject $formObject |
||
30 | */ |
||
31 | public function __construct(FormObject $formObject) |
||
35 | |||
36 | /** |
||
37 | * This function will search among the registered steps to find the one that |
||
38 | * has the same controller parameters. |
||
39 | * |
||
40 | * It is also possible not to find any step, in this case `null` is |
||
41 | * returned. |
||
42 | * |
||
43 | * @param Request $request |
||
44 | * @return Step|null |
||
45 | */ |
||
46 | public function getCurrentStep(Request $request) |
||
81 | |||
82 | /** |
||
83 | * @todo |
||
84 | * |
||
85 | * @param callable $callback |
||
86 | */ |
||
87 | protected function amongSteps(callable $callback) |
||
96 | |||
97 | /** |
||
98 | * @todo |
||
99 | * |
||
100 | * @param Step $step |
||
101 | * @param callable $callback |
||
102 | */ |
||
103 | protected function amongStepsRecursive(Step $step, callable $callback) |
||
113 | } |
||
114 |