| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 24 | 
| Code Lines | 15 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 22 | public static function fromName($name) : Validator  | 
            ||
| 23 |     { | 
            ||
| 24 | $validatorClass = 'Sensorario'  | 
            ||
| 25 | .'\\Resources'  | 
            ||
| 26 | .'\\Validators'  | 
            ||
| 27 | .'\\Validators'  | 
            ||
| 28 | .'\\' . $name;  | 
            ||
| 29 | |||
| 30 |         if ('RightType' == $name) { | 
            ||
| 31 | $validator = new EmailValidator();  | 
            ||
| 32 | |||
| 33 | $multipleValidations = new MultipleValidationWithAnd([  | 
            ||
| 34 | new RFCValidation(),  | 
            ||
| 35 | new DNSCheckValidation()  | 
            ||
| 36 | ]);  | 
            ||
| 37 | |||
| 38 | return new $validatorClass(  | 
            ||
| 39 | $validator,  | 
            ||
| 40 | $multipleValidations  | 
            ||
| 41 | );  | 
            ||
| 42 | }  | 
            ||
| 43 | |||
| 44 | return new $validatorClass();  | 
            ||
| 45 | }  | 
            ||
| 46 | }  | 
            ||
| 47 |