public function getValidators() { $validators = parent::getValidators(); if ($this->validation === null) { $validators[] = new Validator\Enum(); } return $validators; }
public function getValidators() { $validators = parent::getValidators(); if ($this->format !== null) { $validators[] = new Validator\RegExp($this->format); } return $validators; }