| Total Complexity | 4 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | class Captcha implements RuleInterface |
||
| 19 | { |
||
| 20 | use Request; |
||
| 21 | |||
| 22 | private ?string $message; |
||
| 23 | |||
| 24 | 3 | public function __construct(?string $message = null) |
|
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @param Ruleable&Element $element |
||
| 31 | * @return bool |
||
| 32 | */ |
||
| 33 | 2 | public function validate(Ruleable $element): bool |
|
| 41 | } |
||
| 42 | |||
| 43 | |||
| 44 | 1 | public function getMessage(): ?string |
|
| 49 |