original_string: public function hasValidator($name)
      {
          $method = 'validation' . ucfirst($name);
          if ($this->validationMethodExists($method)) {
              return true;
          }
  
          return isset($this->_validators[$name]);
      }
code: public function hasValidator($name)
      {
          $method = 'validation' . ucfirst($name);
          if ($this->validationMethodExists($method)) {
              return true;
          }
  
          return isset($this->_validators[$name]);
      }
code_tokens: public function hasValidator ( $ name ) { $ method = 'validation' . ucfirst ( $ name ) ; if ( $ this -> validationMethodExists ( $ method ) ) { return true ; } return isset ( $ this -> _validators [ $ name ] ) ; }
docstring: Checks whether or not a validator has been set.
  
  @param string $name The name of a validator.
  @return bool
docstring_tokens: Checks whether or not a validator has been set .