| 1 | <?php |
||
| 15 | class DirectoryEmpty extends AbstractRule |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @var string error template |
||
| 19 | */ |
||
| 20 | protected $template = '{{name}} must be an empty directory'; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param $input |
||
| 24 | * @return bool |
||
| 25 | */ |
||
| 26 | public function directoryEmpty($input) |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param mixed $input |
||
| 33 | * @return bool |
||
| 34 | */ |
||
| 35 | public function validate($input) : bool |
||
| 43 | } |
||
| 44 |