| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public function isValid($form) |
||
| 25 | { |
||
| 26 | if (false === $form instanceof Form) { |
||
| 27 | return; |
||
| 28 | } |
||
| 29 | |||
| 30 | if ($form->hasStep()) { |
||
| 31 | $stepValidator = new StepValidator([], $form); |
||
| 32 | $result = $stepValidator->validate($form->getStep()); |
||
| 33 | |||
| 34 | $this->result->forProperty('step')->merge($result); |
||
| 35 | } |
||
| 36 | } |
||
| 37 | } |
||
| 38 |