| 1 | <?php |
||
| 18 | class NegativeRule extends AbstractRule |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @var string error template |
||
| 22 | */ |
||
| 23 | protected $description = 'must be negative'; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Check for negative number |
||
| 27 | * |
||
| 28 | * @param string $input |
||
| 29 | * |
||
| 30 | * @return bool |
||
| 31 | */ |
||
| 32 | 14 | public function validate($input): bool |
|
| 36 | } |
||
| 37 |