| Conditions | 3 | 
| Paths | 3 | 
| Total Lines | 15 | 
| Code Lines | 8 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 41 | public function isValid($step)  | 
            ||
| 42 |     { | 
            ||
| 43 |         if (false === $step instanceof Steps) { | 
            ||
| 44 | return;  | 
            ||
| 45 | }  | 
            ||
| 46 | |||
| 47 |         if (false === $this->form->hasPersistence()) { | 
            ||
| 48 | $this->addError(  | 
            ||
| 49 | 'In order to use steps, you first need to register at least one persistence service for this form.',  | 
            ||
| 50 | 1491828562  | 
            ||
| 51 | );  | 
            ||
| 52 |         } else { | 
            ||
| 53 | |||
| 54 | }  | 
            ||
| 55 | }  | 
            ||
| 56 | }  | 
            ||
| 57 |