original_string: 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();
      }
code: 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();
      }
code_tokens: 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 ( ) ; }
docstring: 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
docstring_tokens: Validates a single rule .