| Total Complexity | 4 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | abstract class AbstractRule implements Rule |
||
| 9 | { |
||
| 10 | use ValidateOrFail, |
||
| 11 | BelongsToField; |
||
| 12 | |||
| 13 | protected string $message; |
||
| 14 | |||
| 15 | public function __construct(?string $message = null) |
||
| 18 | } |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @inheritDoc |
||
| 22 | */ |
||
| 23 | public function validate(mixed $input, array $context = []): Result |
||
| 27 | } |
||
| 28 | |||
| 29 | private function classShortName(): string |
||
| 32 | } |
||
| 33 | |||
| 34 | abstract public function isValid(mixed $input, array $context = []): bool; |
||
| 35 | } |
||
| 36 |