protected function setup_validation($data)
    {
        $this->validation = new Validation($data, $this->rules(), $this->messages());

        if (!empty($this->aliases())) {
            $this->set_aliases($this->aliases());
        }
    }
protected function setup_validation($data)
    {
        $this->validation = new Validation($data, $this->rules(), $this->messages());

        if (!empty($this->aliases())) {
            $this->set_aliases($this->aliases());
        }
    }
protected function setup_validation ( $ data ) { $ this -> validation = new Validation ( $ data , $ this -> rules ( ) , $ this -> messages ( ) ) ; if ( ! empty ( $ this -> aliases ( ) ) ) { $ this -> set_aliases ( $ this -> aliases ( ) ) ; } }
Sets up the Snap\Http\Validation\Validation instance.

@since 1.0.0

@param array $data The data to validate.
Sets up the Snap \ Http \ Validation \ Validation instance .