src/Message/Parser.php
protected function createReceiveLinkMsg(array $data)
    {
        $result = new WxReceiveLinkMsg();
        $this->initReceiveMsg($result, $data);
        $result->setTitle(isset($data['Title']) ? trim($data['Title']) : '');
        $result->setDescription(isset($data['Description']) ? trim($data['Description']) : '');
        $result->setUrl(isset($data['Url']) ? trim($data['Url']) : '');
        return $result;
    }
protected function createReceiveLinkMsg(array $data)
    {
        $result = new WxReceiveLinkMsg();
        $this->initReceiveMsg($result, $data);
        $result->setTitle(isset($data['Title']) ? trim($data['Title']) : '');
        $result->setDescription(isset($data['Description']) ? trim($data['Description']) : '');
        $result->setUrl(isset($data['Url']) ? trim($data['Url']) : '');
        return $result;
    }
protected function createReceiveLinkMsg ( array $ data ) { $ result = new WxReceiveLinkMsg ( ) ; $ this -> initReceiveMsg ( $ result , $ data ) ; $ result -> setTitle ( isset ( $ data [ 'Title' ] ) ? trim ( $ data [ 'Title' ] ) : '' ) ; $ result -> setDescription ( isset ( $ data [ 'Description' ] ) ? trim ( $ data [ 'Description' ] ) : '' ) ; $ result -> setUrl ( isset ( $ data [ 'Url' ] ) ? trim ( $ data [ 'Url' ] ) : '' ) ; return $ result ; }
create link msg

@param array $data
@return WxReceiveLinkMsg
create link msg