| 1 | <?php |
||
| 6 | class ArticleValidator implements \Admin\Validator\ValidatorInterface |
||
| 7 | { |
||
| 8 | /** |
||
| 9 | * @var \Zend\Stdlib\ArrayObject |
||
| 10 | */ |
||
| 11 | private $messages; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * Perform data validation for article entity. |
||
| 15 | * |
||
| 16 | * @param array $postData request post data |
||
| 17 | * |
||
| 18 | * @throws ValidatorException |
||
| 19 | * |
||
| 20 | * @return void |
||
| 21 | */ |
||
| 22 | public function validate($postData) |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Messages getter method. |
||
| 48 | * |
||
| 49 | * @return \Zend\Stdlib\ArrayObject |
||
| 50 | */ |
||
| 51 | public function getMessages() : \Zend\Stdlib\ArrayObject |
||
| 55 | } |
||
| 56 |