protected function sendNewsItemToJsonString(WxSendNewsMsgItem $item)
    {
        $formatStr = '{
                         "title":"%s",
                         "description":"%s",
                         "url":"%s",
                         "picurl":"%s"
                     }';
        $result = sprintf($formatStr,   $item->getTitle(),
            $item->getDescription(),
            $item->getPicUrl(),
            $item->getUrl()
        );

        return $result;
    }
protected function sendNewsItemToJsonString(WxSendNewsMsgItem $item)
    {
        $formatStr = '{
                         "title":"%s",
                         "description":"%s",
                         "url":"%s",
                         "picurl":"%s"
                     }';
        $result = sprintf($formatStr,   $item->getTitle(),
            $item->getDescription(),
            $item->getPicUrl(),
            $item->getUrl()
        );

        return $result;
    }
protected function sendNewsItemToJsonString ( WxSendNewsMsgItem $ item ) { $ formatStr = '{
                         "title":"%s",
                         "description":"%s",
                         "url":"%s",
                         "picurl":"%s"
                     }' ; $ result = sprintf ( $ formatStr , $ item -> getTitle ( ) , $ item -> getDescription ( ) , $ item -> getPicUrl ( ) , $ item -> getUrl ( ) ) ; return $ result ; }
formatter WxSendNewsMsgItem to Json string

@param WxSendNewsMsgItem $item
@return string
formatter WxSendNewsMsgItem to Json string