original_string: protected function sendTextMsgToXmlString(WxSendTextMsg $msg)
      {
          $formatStr = <<<XML
  <xml>
  <ToUserName><![CDATA[%s]]></ToUserName>
  <FromUserName><![CDATA[%s]]></FromUserName>
  <CreateTime>%d</CreateTime>
  <MsgType><![CDATA[%s]]></MsgType>
  <Content><![CDATA[%s]]></Content>
  </xml>
  XML;
          $result = sprintf($formatStr,   $msg->getToUserName(),
                                          $msg->getFromUserName(),
                                          strtotime($msg->getCreateTime()),
                                          $msg->getMsgType(),
                                          $msg->getContent()
                          );
  
  
          return $result;
      }
code: protected function sendTextMsgToXmlString(WxSendTextMsg $msg)
      {
          $formatStr = <<<XML
  <xml>
  <ToUserName><![CDATA[%s]]></ToUserName>
  <FromUserName><![CDATA[%s]]></FromUserName>
  <CreateTime>%d</CreateTime>
  <MsgType><![CDATA[%s]]></MsgType>
  <Content><![CDATA[%s]]></Content>
  </xml>
  XML;
          $result = sprintf($formatStr,   $msg->getToUserName(),
                                          $msg->getFromUserName(),
                                          strtotime($msg->getCreateTime()),
                                          $msg->getMsgType(),
                                          $msg->getContent()
                          );
  
  
          return $result;
      }
code_tokens: protected function sendTextMsgToXmlString ( WxSendTextMsg $ msg ) { $ formatStr =  <<<XML
  <xml>
  <ToUserName><![CDATA[%s]]></ToUserName>
  <FromUserName><![CDATA[%s]]></FromUserName>
  <CreateTime>%d</CreateTime>
  <MsgType><![CDATA[%s]]></MsgType>
  <Content><![CDATA[%s]]></Content>
  </xml>
  XML ; $ result = sprintf ( $ formatStr , $ msg -> getToUserName ( ) , $ msg -> getFromUserName ( ) , strtotime ( $ msg -> getCreateTime ( ) ) , $ msg -> getMsgType ( ) , $ msg -> getContent ( ) ) ; return $ result ; }
docstring: formatter WxSendTextMsg to xml string
  @param WxSendTextMsg $msg
  @return string
docstring_tokens: formatter WxSendTextMsg to xml string