| Total Complexity | 4 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class ValidatorFacade extends AbstractFacade |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @param array $data |
||
| 17 | * @param string $key |
||
| 18 | * @param mixed $config |
||
| 19 | */ |
||
| 20 | 3 | public function validateClosure(array $data, string $key, $config): void |
|
| 21 | { |
||
| 22 | 3 | $this->getFactory() |
|
| 23 | 3 | ->createClosureValidator() |
|
| 24 | 3 | ->validate($data, $key, $config); |
|
| 25 | 2 | } |
|
| 26 | |||
| 27 | /** |
||
| 28 | * @param array $data |
||
| 29 | * @param string $key |
||
| 30 | * @param mixed $config |
||
| 31 | */ |
||
| 32 | 7 | public function validateIsRequired(array $data, string $key, $config): void |
|
| 33 | { |
||
| 34 | 7 | $this->getFactory() |
|
| 35 | 7 | ->createIsRequiredValidator() |
|
| 36 | 7 | ->validate($data, $key, $config); |
|
| 37 | 6 | } |
|
| 38 | |||
| 39 | /** |
||
| 40 | * @param array $data |
||
| 41 | * @param string $key |
||
| 42 | * @param mixed $config |
||
| 43 | */ |
||
| 44 | 4 | public function validateIsType(array $data, string $key, $config): void |
|
| 45 | { |
||
| 46 | 4 | $this->getFactory() |
|
| 47 | 4 | ->createIsTypeValidator() |
|
| 48 | 4 | ->validate($data, $key, $config); |
|
| 49 | 4 | } |
|
| 50 | |||
| 51 | /** |
||
| 52 | * @param array $data |
||
| 53 | * @param array $configurationPlugins |
||
| 54 | * @throws \Xervice\Validator\Business\Exception\ValidationException |
||
| 55 | */ |
||
| 56 | 5 | public function validate(array $data, array $configurationPlugins): void |
|
| 61 | } |
||
| 62 | } |