💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
# Abstract class Phalcon\\Validation\\Validator # Abstract class **Phalcon\\Validation\\Validator** *implements*[*Phalcon\\Validation\\ValidatorInterface*](#) This is a base class for validators ### Methods public **\_\_construct** (\[*unknown* $options\]) Phalcon\\Validation\\Validator constructor public **isSetOption** (*unknown* $key) Checks if an option is defined public **hasOption** (*unknown* $key) Checks if an option is defined public **getOption** (*unknown* $key, \[*unknown* $defaultValue\]) Returns an option in the validator's options Returns null if the option hasn't set public **setOption** (*unknown* $key, *unknown* $value) Sets an option in the validator abstract public **validate** (*unknown* $validation, *unknown* $attribute) Executes the validation | - [索引](# "总目录") - [下一页](# "Class Phalcon\Validation\Validator\Alnum") | - [上一页](# "Class Phalcon\Validation\Message\Group") | - [API Indice](#) »