| Total Complexity | 3 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 1 | 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 |
|
| 37 | } |
||
| 38 | |||
| 39 | |||
| 40 | 1 | public function getMessage(): ?string |
|
| 45 |