original_string: public function setSubject($subject) {
      if (!is_string($subject)) {
        $error = sprintf("Subject given is not a string (Actual type: %s).",
                 gettype($subject));
        throw new \InvalidArgumentException($error);
      }
      $this->message->setSubject($subject);
    }
code: public function setSubject($subject) {
      if (!is_string($subject)) {
        $error = sprintf("Subject given is not a string (Actual type: %s).",
                 gettype($subject));
        throw new \InvalidArgumentException($error);
      }
      $this->message->setSubject($subject);
    }
code_tokens: public function setSubject ( $ subject ) { if ( ! is_string ( $ subject ) ) { $ error = sprintf ( "Subject given is not a string (Actual type: %s)." , gettype ( $ subject ) ) ; throw new \ InvalidArgumentException ( $ error ) ; } $ this -> message -> setSubject ( $ subject ) ; }
docstring: Sets the subject for the mail object.
  
  @param string $subject Subject line.
  @throws \InvalidArgumentException If subject line is not a string.
docstring_tokens: Sets the subject for the mail object .