1 | <?php |
||
29 | class PresetMiddlewares implements DataPreProcessorInterface |
||
30 | { |
||
31 | use MagicMethodsTrait; |
||
32 | |||
33 | /** |
||
34 | * @var \Romm\Formz\Middleware\Item\FormInjection\FormInjectionMiddleware |
||
35 | */ |
||
36 | protected $formInjectionMiddleware; |
||
37 | |||
38 | /** |
||
39 | * @var \Romm\Formz\Middleware\Item\FormValidation\FormValidationMiddleware |
||
40 | */ |
||
41 | protected $formValidationMiddleware; |
||
42 | |||
43 | /** |
||
44 | * @var \Romm\Formz\Middleware\Item\Persistence\PersistenceFetchingMiddleware |
||
45 | */ |
||
46 | protected $persistenceFetchingMiddleware; |
||
47 | |||
48 | /** |
||
49 | * @var \Romm\Formz\Middleware\Item\Step\PreviousStepMiddleware |
||
50 | */ |
||
51 | protected $previousStepMiddleware; |
||
52 | |||
53 | /** |
||
54 | * @var \Romm\Formz\Middleware\Item\Step\StepFetchingMiddleware |
||
55 | */ |
||
56 | protected $stepFetchingMiddleware; |
||
57 | |||
58 | /** |
||
59 | * @var \Romm\Formz\Middleware\Item\Step\StepDispatchingMiddleware |
||
60 | */ |
||
61 | protected $stepDispatchingMiddleware; |
||
62 | |||
63 | /** |
||
64 | * @var \Romm\Formz\Middleware\Item\Step\SubstepFetchingMiddleware |
||
65 | */ |
||
66 | protected $substepFetchingMiddleware; |
||
67 | |||
68 | /** |
||
69 | * @var \Romm\Formz\Middleware\Item\Field\Focus\FieldFocusMiddleware |
||
70 | */ |
||
71 | protected $fieldFocusMiddleware; |
||
72 | |||
73 | /** |
||
74 | * Returns the full list of preset middlewares. |
||
75 | * |
||
76 | * @return MiddlewareInterface[] |
||
77 | */ |
||
78 | public function getList() |
||
82 | |||
83 | /** |
||
84 | * Fills middlewares by default (if they are not filled in configuration). |
||
85 | * |
||
86 | * @param DataPreProcessor $processor |
||
87 | */ |
||
88 | public static function dataPreProcessor(DataPreProcessor $processor) |
||
100 | |||
101 | /** |
||
102 | * @return FormInjectionMiddleware |
||
103 | */ |
||
104 | public function getFormInjectionMiddleware() |
||
108 | |||
109 | /** |
||
110 | * @return FormValidationMiddleware |
||
111 | */ |
||
112 | public function getFormValidationMiddleware() |
||
116 | |||
117 | /** |
||
118 | * @return PersistenceFetchingMiddleware |
||
119 | */ |
||
120 | public function getPersistenceFetchingMiddleware() |
||
124 | |||
125 | /** |
||
126 | * @return PreviousStepMiddleware |
||
127 | */ |
||
128 | public function getPreviousStepMiddleware() |
||
132 | |||
133 | /** |
||
134 | * @return StepFetchingMiddleware |
||
135 | */ |
||
136 | public function getStepFetchingMiddleware() |
||
140 | |||
141 | /** |
||
142 | * @return StepDispatchingMiddleware |
||
143 | */ |
||
144 | public function getStepDispatchingMiddleware() |
||
148 | |||
149 | /** |
||
150 | * @return SubstepFetchingMiddleware |
||
151 | */ |
||
152 | public function getSubstepFetchingMiddleware() |
||
156 | |||
157 | /** |
||
158 | * @return FieldFocusMiddleware |
||
159 | */ |
||
160 | public function getFieldFocusMiddleware() |
||
164 | } |
||
165 |