Validation\Validator\InclusionIn
Class Phalcon\Validation\Validator\InclusionIn
extends abstract class Phalcon\Validation\Validator
implements Phalcon\Validation\ValidatorInterface
Check if a value is included into a list of values
use Phalcon\Validation\Validator\InclusionIn; $validator->add('status', new InclusionIn(array( 'message' => 'The status must be A or B', 'domain' => array('A', 'B') )));
Methods
public boolean validate (Phalcon\Validation $validator, string $attribute)
Executes the va