This is extended version of Phalcon\Validation\Validator\ExclusionIn with Validator Trait implemented.
namespace Foo\Forms;
use Phalcon\Forms\Element\Text;
use Vegas\Validation\Validator\ExclusionIn;
class Bar extends \Vegas\Forms\Form
{
public function initialize()
{
$status = new Text('status');
$status->addValidator(new ExclusionIn([
'domain' => array('Foo', 'Bar')
]));
$this->add($status);
// ...
}
}