1 | <?php |
||
19 | class ValidatorFacade implements ValidationFacadeInterface |
||
20 | { |
||
21 | /** |
||
22 | * @var ValidationProviderInterface $validationProvider |
||
23 | */ |
||
24 | private $validationProvider; |
||
25 | |||
26 | /** |
||
27 | * @var ValidationResultProcessorInterface $validationResultProcessor |
||
28 | */ |
||
29 | private $validationResultProcessor; |
||
30 | |||
31 | /** |
||
32 | * @var RulesFactoryInterface $rulesFactory |
||
33 | */ |
||
34 | private $rulesFactory; |
||
35 | |||
36 | /** |
||
37 | * @param ValidationProviderInterface $validationProvider |
||
38 | * @param ValidationResultProcessorInterface $validationResultProcessor |
||
39 | * @param RulesFactoryInterface $rulesFactory |
||
40 | */ |
||
41 | public function __construct( |
||
50 | |||
51 | /** |
||
52 | * @param array $inputData |
||
53 | * @param array $rules |
||
54 | * @param array $errorMessages |
||
55 | * |
||
56 | * @return ValidationResultProcessor |
||
|
|||
57 | */ |
||
58 | public function validate( |
||
72 | } |
||
73 |
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.