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 | 4 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class InputValidatorFactory |
||
| 13 | { |
||
| 14 | private ?ValidatorInterface $defaultValidator; |
||
| 15 | private ?ConstraintValidatorFactoryInterface $constraintValidatorFactory; |
||
| 16 | private ?TranslatorInterface $defaultTranslator; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * InputValidatorFactory constructor. |
||
| 20 | */ |
||
| 21 | public function __construct( |
||
| 22 | ?ConstraintValidatorFactoryInterface $constraintValidatorFactory, |
||
| 23 | ?ValidatorInterface $validator, |
||
| 24 | ?TranslatorInterface $translator |
||
| 25 | ) { |
||
| 26 | $this->defaultValidator = $validator; |
||
| 27 | $this->defaultTranslator = $translator; |
||
| 28 | $this->constraintValidatorFactory = $constraintValidatorFactory; |
||
| 29 | } |
||
| 30 | |||
| 31 | public function create(array $resolverArgs): InputValidator |
||
| 42 | ); |
||
| 43 | } |
||
| 45 |