Vegas CMF Validation

Vegas\Validation\Validator\Between

This is extended version of Phalcon\Validation\Validator\Between with Validator Trait implemented.

Example

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);

        // ...
    }
}