1 | <?php |
||
16 | class Constraints extends AbstractPropertyValidator implements PropertyValidatorInterface |
||
17 | { |
||
18 | const DIC_NAME = 'ConstraintsValidator'; |
||
19 | const MESSAGE_TEMPLATE = '"%s" contained constraint is not valid. Should be an array with three values.'; |
||
20 | |||
21 | /** |
||
22 | * @inheritDoc |
||
23 | */ |
||
24 | 3 | public function isValid($sProperty, JobEntity $oJobEntity) |
|
32 | |||
33 | /** |
||
34 | * @param array $aConstraints |
||
35 | * @return bool |
||
36 | */ |
||
37 | 3 | private function isConstraintsPropertyValid($aConstraints) |
|
57 | } |