src/Valdi/Validator.php
protected function isValidRule($validator, $parameters, $value) {
        if (!array_key_exists($validator, $this->availableValidators)) {
            throw new ValidatorException('"'.$validator.'" not found as available validator.');
        }
        return $this->availableValidators[$validator]->isValid($value, $parameters) ?
            null : $this->availableValidators[$validator]->getInvalidDetails();
    }
protected function isValidRule($validator, $parameters, $value) {
        if (!array_key_exists($validator, $this->availableValidators)) {
            throw new ValidatorException('"'.$validator.'" not found as available validator.');
        }
        return $this->availableValidators[$validator]->isValid($value, $parameters) ?
            null : $this->availableValidators[$validator]->getInvalidDetails();
    }
protected function isValidRule ( $ validator , $ parameters , $ value ) { if ( ! array_key_exists ( $ validator , $ this -> availableValidators ) ) { throw new ValidatorException ( '"' . $ validator . '" not found as available validator.' ) ; } return $ this -> availableValidators [ $ validator ] -> isValid ( $ value , $ parameters ) ? null : $ this -> availableValidators [ $ validator ] -> getInvalidDetails ( ) ; }
Validates a single rule.

@param string $validator
the validator to use
@param string[] $parameters
the validation parameters, depending on the validator
@param string $value
the value to validate

@return boolean
true if the value is valid

@throws ValidationException
thrown if the validator is not available
Validates a single rule .