| 1 | <?php |
||
| 24 | abstract class AbstractValidator implements ValidatorInterface { |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Rule set. |
||
| 28 | * |
||
| 29 | * @var ValidationRuleSetInterface |
||
| 30 | */ |
||
| 31 | private $ruleSet; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Constructor. |
||
| 35 | * |
||
| 36 | * @param ValidationRuleSetInterface $ruleSet The rule set. |
||
| 37 | */ |
||
| 38 | protected function __construct(ValidationRuleSetInterface $ruleSet) { |
||
| 41 | |||
| 42 | /** |
||
| 43 | * {@inheritdoc} |
||
| 44 | */ |
||
| 45 | public function getRuleSet() { |
||
| 48 | |||
| 49 | /** |
||
| 50 | * {@inheritdoc} |
||
| 51 | */ |
||
| 52 | public function isValid($object) { |
||
| 55 | |||
| 56 | /** |
||
| 57 | * Set the rule set. |
||
| 58 | * |
||
| 59 | * @param ValidationRuleSetInterface $ruleSet The rule set. |
||
| 60 | * @return ValidatorInterface Returns this validator. |
||
| 61 | */ |
||
| 62 | protected function setRuleSet(ValidationRuleSetInterface $ruleSet) { |
||
| 66 | |||
| 67 | } |
||
| 68 |