public function setValidators($validators = [])
{
if (is_array($validators)) {
$this->validators = $validators;
} else {
$this->validators = func_get_args();
if (count($this->validators) == 1 && is_string($this->validators[0])) {
$this->validators = explode(',', $this->validators[0]);
}
}
if (in_array('required', $this->validators)) {
$this->setRequired();
unset($this->validators[array_search('required', $this->validators)]);
}
return $this;
}