We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Total Complexity | 3 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class InputValidatorFactory |
||
14 | { |
||
15 | private ?ValidatorInterface $defaultValidator; |
||
16 | private ?ConstraintValidatorFactoryInterface $constraintValidatorFactory; |
||
17 | private ?TranslatorInterface $defaultTranslator; |
||
18 | |||
19 | /** |
||
20 | * InputValidatorFactory constructor. |
||
21 | */ |
||
22 | public function __construct( |
||
23 | ?ConstraintValidatorFactoryInterface $constraintValidatorFactory, |
||
24 | ?ValidatorInterface $validator, |
||
25 | ?TranslatorInterface $translator |
||
26 | ) { |
||
27 | $this->defaultValidator = $validator; |
||
28 | $this->defaultTranslator = $translator; |
||
29 | $this->constraintValidatorFactory = $constraintValidatorFactory; |
||
30 | } |
||
31 | |||
32 | public function create(ResolverArgs $args): InputValidator |
||
43 | ); |
||
44 | } |
||
46 |