| 1 | <?php |
||
| 19 | abstract class AbstractRule implements RuleInterface |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * Message for error output |
||
| 23 | * @var string |
||
| 24 | */ |
||
| 25 | protected $description = 'is invalid'; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @inheritdoc |
||
| 29 | */ |
||
| 30 | abstract public function validate($input): bool; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @inheritdoc |
||
| 34 | */ |
||
| 35 | 196 | public function getDescription() : string |
|
| 39 | |||
| 40 | /** |
||
| 41 | * @inheritdoc |
||
| 42 | */ |
||
| 43 | 2 | public function setDescription(string $description) |
|
| 48 | |||
| 49 | /** |
||
| 50 | * @inheritdoc |
||
| 51 | */ |
||
| 52 | 1 | public function __invoke($input): bool |
|
| 56 | |||
| 57 | /** |
||
| 58 | * @inheritdoc |
||
| 59 | */ |
||
| 60 | 438 | public function __toString() |
|
| 64 | } |
||
| 65 |