original_string: public function setTextBody($text) {
      if (!is_string($text)) {
        $error = sprintf("Plain text given is not a string (Actual type: %s).",
                         gettype($text));
        throw new \InvalidArgumentException($error);
      }
      $this->message->setTextbody($text);
    }
code: public function setTextBody($text) {
      if (!is_string($text)) {
        $error = sprintf("Plain text given is not a string (Actual type: %s).",
                         gettype($text));
        throw new \InvalidArgumentException($error);
      }
      $this->message->setTextbody($text);
    }
code_tokens: public function setTextBody ( $ text ) { if ( ! is_string ( $ text ) ) { $ error = sprintf ( "Plain text given is not a string (Actual type: %s)." , gettype ( $ text ) ) ; throw new \ InvalidArgumentException ( $ error ) ; } $ this -> message -> setTextbody ( $ text ) ; }
docstring: Sets plain text for the email body.
  
  @param string $text Plain text to add.
  @return bool True if successful, false otherwise.
  @throws \InvalidArgumentException If text is not a string.
docstring_tokens: Sets plain text for the email body .