original_string: public function setErrorMessage($errorMessage)
      {
          $this->errorMessage = $errorMessage;
          $this->setValidator($this->getDefaultValidator());
  
          return $this;
      }
code: public function setErrorMessage($errorMessage)
      {
          $this->errorMessage = $errorMessage;
          $this->setValidator($this->getDefaultValidator());
  
          return $this;
      }
code_tokens: public function setErrorMessage ( $ errorMessage ) { $ this -> errorMessage = $ errorMessage ; $ this -> setValidator ( $ this -> getDefaultValidator ( ) ) ; return $ this ; }
docstring: Sets the error message for invalid values.
  
  The error message has a string placeholder (%s) for the invalid value.
  
  @param string $errorMessage
  
  @return $this
docstring_tokens: Sets the error message for invalid values .