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