1 | <?php declare(strict_types=1); |
||
8 | class ReCaptchaAdapter implements CaptchaAdapterInterface, ValidatorInterface |
||
9 | { |
||
10 | /** @var string $siteKey */ |
||
11 | private $siteKey; |
||
12 | |||
13 | /** @var string $secretKey */ |
||
14 | private $secretKey; |
||
15 | |||
16 | /** |
||
17 | * ReCaptchaAdapter constructor. |
||
18 | * @param string $siteKey |
||
19 | * @param string $secretKey |
||
20 | */ |
||
21 | public function __construct(string $siteKey, string $secretKey) |
||
26 | |||
27 | public function generate(): string |
||
31 | |||
32 | public function render(): string |
||
46 | |||
47 | public function isValid($value) |
||
63 | |||
64 | /** |
||
65 | * @return array |
||
66 | */ |
||
67 | public function getMessages() |
||
71 | |||
72 | } |