original_string: public function setMessageId($message)
      {
          if (is_bool($message)) {
              $this->_messageId = $message;
          } else {
              if (!preg_match('/^\<.+@.+\>$/', $message)) {
                  throw new InvalidArgumentException('Invalid format to Message-ID. The text should be something like "<uuid@server.com>"');
              }
              $this->_messageId = $message;
          }
  
          return $this;
      }
code: public function setMessageId($message)
      {
          if (is_bool($message)) {
              $this->_messageId = $message;
          } else {
              if (!preg_match('/^\<.+@.+\>$/', $message)) {
                  throw new InvalidArgumentException('Invalid format to Message-ID. The text should be something like "<uuid@server.com>"');
              }
              $this->_messageId = $message;
          }
  
          return $this;
      }
code_tokens: public function setMessageId ( $ message ) { if ( is_bool ( $ message ) ) { $ this -> _messageId = $ message ; } else { if ( ! preg_match ( '/^\<.+@.+\>$/' , $ message ) ) { throw new InvalidArgumentException ( 'Invalid format to Message-ID. The text should be something like "<uuid@server.com>"' ) ; } $ this -> _messageId = $ message ; } return $ this ; }
docstring: Sets message ID.
  
  @param bool|string $message True to generate a new Message-ID, False to ignore (not send in email), String to set as Message-ID.
  @return $this
  @throws \InvalidArgumentException
docstring_tokens: Sets message ID .