| 1 | <?php |
||
| 15 | abstract class AbstractPropertyValidator implements PropertyValidatorInterface |
||
| 16 | { |
||
| 17 | /** @var string */ |
||
| 18 | protected $lastErrorMessage = ''; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @inheritDoc |
||
| 22 | */ |
||
| 23 | abstract public function isValid($property, JobEntityInterface $jobEntity); |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @inheritDoc |
||
| 27 | */ |
||
| 28 | 32 | public function getLastErrorMessage() |
|
| 32 | |||
| 33 | /** |
||
| 34 | * @param boolean $isValid |
||
| 35 | * @param string $property |
||
| 36 | * @param string $errorMessageTemplate |
||
| 37 | * @return bool |
||
| 38 | */ |
||
| 39 | 32 | protected function returnIsValidHelper($isValid, $property, $errorMessageTemplate) |
|
| 49 | } |
||
| 50 |