1 | <?php |
||
13 | class ValidateEntryData implements Middleware |
||
14 | { |
||
15 | /** |
||
16 | * @var array |
||
17 | */ |
||
18 | public $rules = []; |
||
19 | |||
20 | /** |
||
21 | * @param object $command |
||
22 | * @param callable $next |
||
23 | * @return mixed |
||
24 | * @throws EntryValidationException |
||
25 | */ |
||
26 | public function execute($command, callable $next) |
||
31 | |||
32 | /** |
||
33 | * @param $command |
||
34 | * @return $this |
||
35 | */ |
||
36 | protected function prepareValidation($command) |
||
44 | |||
45 | /** |
||
46 | * Set the validation rules for the Field |
||
47 | * @param $field |
||
48 | */ |
||
49 | protected function setRulesForField($field) |
||
64 | |||
65 | /** |
||
66 | * @param $command |
||
67 | * @throws EntryValidationException |
||
68 | */ |
||
69 | protected function performValidation($command) |
||
76 | } |
||
77 |