src/Message/Parser.php
protected function createReceiveVoiceMsg(array $data)
    {
        $result = new WxReceiveVoiceMsg();
        $this->initReceiveMsg($result, $data);
        $result->setMediaId(isset($data['MediaId']) ? trim($data['MediaId']) : '');
        $result->setFormat(isset($data['Format']) ? trim($data['Format']) : '');
        return $result;
    }
protected function createReceiveVoiceMsg(array $data)
    {
        $result = new WxReceiveVoiceMsg();
        $this->initReceiveMsg($result, $data);
        $result->setMediaId(isset($data['MediaId']) ? trim($data['MediaId']) : '');
        $result->setFormat(isset($data['Format']) ? trim($data['Format']) : '');
        return $result;
    }
protected function createReceiveVoiceMsg ( array $ data ) { $ result = new WxReceiveVoiceMsg ( ) ; $ this -> initReceiveMsg ( $ result , $ data ) ; $ result -> setMediaId ( isset ( $ data [ 'MediaId' ] ) ? trim ( $ data [ 'MediaId' ] ) : '' ) ; $ result -> setFormat ( isset ( $ data [ 'Format' ] ) ? trim ( $ data [ 'Format' ] ) : '' ) ; return $ result ; }
create Voice msg

@param array $data
@return WxReceiveVoiceMsg
create Voice msg