AbstractRecaptchaService.php
38 lines
| 1 | <?php |
| 2 | /** |
| 3 | * @copyright © TMS-Plugins. All rights reserved. |
| 4 | * @licence See LICENCE.md for license details. |
| 5 | */ |
| 6 | |
| 7 | namespace AmeliaBooking\Infrastructure\Services\Recaptcha; |
| 8 | |
| 9 | use AmeliaBooking\Domain\Services\Settings\SettingsService; |
| 10 | |
| 11 | /** |
| 12 | * Class AbstractRecaptchaService |
| 13 | */ |
| 14 | abstract class AbstractRecaptchaService |
| 15 | { |
| 16 | /** |
| 17 | * @var SettingsService $settingsService |
| 18 | */ |
| 19 | protected $settingsService; |
| 20 | |
| 21 | /** |
| 22 | * RecaptchaService constructor. |
| 23 | * |
| 24 | * @param SettingsService $settingsService |
| 25 | */ |
| 26 | public function __construct(SettingsService $settingsService) |
| 27 | { |
| 28 | $this->settingsService = $settingsService; |
| 29 | } |
| 30 | |
| 31 | /** |
| 32 | * @param string $value |
| 33 | * |
| 34 | * @return boolean |
| 35 | */ |
| 36 | abstract public function verify($value); |
| 37 | } |
| 38 |