| Total Complexity | 5 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | trait CaptchaTrait |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * Container for captcha addons. |
||
| 24 | * The collection of \Shieldon\Firewall\Captcha\CaptchaInterface |
||
| 25 | * |
||
| 26 | * @var array |
||
| 27 | */ |
||
| 28 | public $captcha = []; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Set a captcha. |
||
| 32 | * |
||
| 33 | * @param CaptchaInterface $instance |
||
| 34 | * |
||
| 35 | * @return void |
||
| 36 | */ |
||
| 37 | public function setCaptcha(CaptchaInterface $instance): void |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Return the result from Captchas. |
||
| 45 | * |
||
| 46 | * @return bool |
||
| 47 | */ |
||
| 48 | public function captchaResponse(): bool |
||
| 68 |