protected function registerValidation(string $name, string $class, $data = null)
    {
        $this->validationRegister[$name] = $class;
        $this->validationData[$name] = $data;
    }
protected function registerValidation(string $name, string $class, $data = null)
    {
        $this->validationRegister[$name] = $class;
        $this->validationData[$name] = $data;
    }
protected function registerValidation ( string $ name , string $ class , $ data = null ) { $ this -> validationRegister [ $ name ] = $ class ; $ this -> validationData [ $ name ] = $ data ; }
Register a validation type.

@param string $name The name of the validation to be used in validation descriptions.
@param string $class The name of the validation class to load.
@param mixed $data Any extra validation data that would be necessary for the validation.
Register a validation type .