Documentation

Interface Phalcon\Validation\ValidatorInterface

Source on GitHub

Phalcon\Validation\ValidatorInterface initializer

Methods

abstract public mixed isSetOption (string $key)

Checks if an option is defined

abstract public mixed getOption (string $key)

Returns an option in the validator’s options Returns null if the option hasn’t been set

abstract public setOption (string $key, mixed $value)

Sets the validator’s option

abstract public boolean validate (Phalcon\ValidationInterface $validator, string|array $attribute, [unknown $allowEmpty])

Executes the validation

abstract public boolean valid ()

Executes the validation