src/Validator.php
private function validateRule($keyword, $parameter)
    {
        if (!$this->ruleSet->has($keyword)) {
            return null;
        }

        return $this->ruleSet->get($keyword)->validate($this->data, $parameter, $this);
    }
private function validateRule($keyword, $parameter)
    {
        if (!$this->ruleSet->has($keyword)) {
            return null;
        }

        return $this->ruleSet->get($keyword)->validate($this->data, $parameter, $this);
    }
private function validateRule ( $ keyword , $ parameter ) { if ( ! $ this -> ruleSet -> has ( $ keyword ) ) { return null ; } return $ this -> ruleSet -> get ( $ keyword ) -> validate ( $ this -> data , $ parameter , $ this ) ; }
Validate the data using the given rule and parameter.

@param string $keyword
@param mixed  $parameter

@return null|ValidationError|ValidationError[]
Validate the data using the given rule and parameter .