original_string: public function setSender($email) {
      if (!$this->checkValidEmail($email)) {
        throw new \InvalidArgumentException(
            "Invalid sender: ". htmlspecialchars($email));
      }
      $this->message->setSender($email);
    }
code: public function setSender($email) {
      if (!$this->checkValidEmail($email)) {
        throw new \InvalidArgumentException(
            "Invalid sender: ". htmlspecialchars($email));
      }
      $this->message->setSender($email);
    }
code_tokens: public function setSender ( $ email ) { if ( ! $ this -> checkValidEmail ( $ email ) ) { throw new \ InvalidArgumentException ( "Invalid sender: " . htmlspecialchars ( $ email ) ) ; } $ this -> message -> setSender ( $ email ) ; }
docstring: Sets the sender for the mail object.
  
  @param string $email Email of the sender.
  @throws \InvalidArgumentException If the input sender is an invalid email
  address.
docstring_tokens: Sets the sender for the mail object .