| Total Complexity | 3 |
| Total Lines | 55 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class ValidatorFactory |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var Factory |
||
| 15 | */ |
||
| 16 | private Factory $factory; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * ValidatorFactory constructor. |
||
| 20 | */ |
||
| 21 | public function __construct() |
||
| 22 | { |
||
| 23 | $this->factory = new Factory($this->loadTranslator()); |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Load the translator from the lang file. |
||
| 28 | * |
||
| 29 | * @return Translation\Translator |
||
| 30 | */ |
||
| 31 | protected function loadTranslator() |
||
| 52 | } |
||
| 53 | |||
| 54 | /** |
||
| 55 | * Magic call method. |
||
| 56 | * |
||
| 57 | * @param $method |
||
| 58 | * @param $args |
||
| 59 | * @return false|mixed |
||
| 60 | */ |
||
| 61 | public function __call($method, $args) |
||
| 66 | ); |
||
| 67 | } |
||
| 69 |