| Total Complexity | 3 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | abstract class AbstractValidation implements Validation |
||
| 12 | { |
||
| 13 | use GuardForValidation, |
||
| 14 | MaybeBelongsToField; |
||
| 15 | |||
| 16 | protected string $message; |
||
| 17 | |||
| 18 | public function __construct(?string $message = null) |
||
| 21 | } |
||
| 22 | |||
| 23 | public function validate($input, array $context = []): Result |
||
| 27 | } |
||
| 28 | |||
| 29 | abstract protected function isValid($input, array $context = []): bool; |
||
| 30 | } |
||
| 31 |