| 1 | <?php |
||
| 12 | abstract class AbstractValidator implements ValidatorInterface |
||
| 13 | { |
||
| 14 | /** @var mixed */ |
||
| 15 | private $errorMessage; |
||
| 16 | /** @return mixed */ |
||
| 17 | public function getErrorMessage() { return $this->errorMessage; } |
||
| 18 | |||
| 19 | /** |
||
| 20 | * AbstractValidator constructor. |
||
| 21 | * @param mixed $errorMessage |
||
| 22 | */ |
||
| 23 | public function __construct($errorMessage = "") |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @throws ValidationException |
||
| 30 | */ |
||
| 31 | protected function throw() |
||
| 35 | } |
||
| 36 |