extends abstract class Phalcon\Validation\Validator
implements Phalcon\Validation\ValidatorInterface
Source on GitHub
Check if a value is not included into a list of values
use Phalcon\Validation\Validator\ExclusionIn;
$validator->add('status', new ExclusionIn([
'message' => 'The status must not be A or B',
'domain' => ['A', 'B']
]));
$validator->add(['status', 'type'], new ExclusionIn([
'message' => [
'status' => 'The status must not be A or B',