public function init() { parent::init(); $this->owner->addRule($this->getAttributeName(), 'in', ['range' => $this->getOptions()]); }
public function init() { parent::init(); $this->owner->addRule($this->getAttributeName(), 'string', ['max' => 255]); }