| 1 | <?php |
||
| 21 | abstract class AbstractRule implements RuleInterface |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * Message for error output |
||
| 25 | * @var string |
||
| 26 | */ |
||
| 27 | protected $description = 'is invalid'; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @inheritdoc |
||
| 31 | */ |
||
| 32 | abstract public function validate($input): bool; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @inheritdoc |
||
| 36 | */ |
||
| 37 | 196 | public function getDescription() : string |
|
| 41 | |||
| 42 | /** |
||
| 43 | * @inheritdoc |
||
| 44 | */ |
||
| 45 | 2 | public function setDescription(string $description) |
|
| 50 | |||
| 51 | /** |
||
| 52 | * @inheritdoc |
||
| 53 | */ |
||
| 54 | 1 | public function __invoke($input): bool |
|
| 58 | |||
| 59 | /** |
||
| 60 | * @inheritdoc |
||
| 61 | */ |
||
| 62 | 436 | public function __toString() |
|
| 66 | } |
||
| 67 |
This check looks for function calls that miss required arguments.