Total Complexity | 4 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class CaptchaManager |
||
13 | { |
||
14 | const ADAPTERS = [ |
||
15 | 'recaptcha', |
||
16 | 'hcaptcha', |
||
17 | ]; |
||
18 | |||
19 | private static $adapter; |
||
20 | |||
21 | /** |
||
22 | * @return CaptchaInterface |
||
23 | * @throws CaptchaException |
||
24 | * @throws ConfigException |
||
25 | * @throws DiException |
||
26 | * @throws ReflectionException |
||
27 | */ |
||
28 | public static function getHandler(): CaptchaInterface |
||
47 | } |
||
48 | } |