src/Message/Parser.php
protected function createReceiveLocationMsg(array $data)
    {
        $result = new WxReceiveLocationMsg();
        $this->initReceiveMsg($result, $data);
        $result->setLocationX(isset($data['Location_X']) ? $data['Location_X']: '');
        $result->setLocationY(isset($data['Location_Y']) ? $data['Location_Y'] : '');
        $result->setScale(isset($data['Scale']) ? $data['Scale'] : '');
        $result->setLabel(isset($data['Label']) ? trim($data['Label']) : '');
        return $result;
    }
protected function createReceiveLocationMsg(array $data)
    {
        $result = new WxReceiveLocationMsg();
        $this->initReceiveMsg($result, $data);
        $result->setLocationX(isset($data['Location_X']) ? $data['Location_X']: '');
        $result->setLocationY(isset($data['Location_Y']) ? $data['Location_Y'] : '');
        $result->setScale(isset($data['Scale']) ? $data['Scale'] : '');
        $result->setLabel(isset($data['Label']) ? trim($data['Label']) : '');
        return $result;
    }
protected function createReceiveLocationMsg ( array $ data ) { $ result = new WxReceiveLocationMsg ( ) ; $ this -> initReceiveMsg ( $ result , $ data ) ; $ result -> setLocationX ( isset ( $ data [ 'Location_X' ] ) ? $ data [ 'Location_X' ] : '' ) ; $ result -> setLocationY ( isset ( $ data [ 'Location_Y' ] ) ? $ data [ 'Location_Y' ] : '' ) ; $ result -> setScale ( isset ( $ data [ 'Scale' ] ) ? $ data [ 'Scale' ] : '' ) ; $ result -> setLabel ( isset ( $ data [ 'Label' ] ) ? trim ( $ data [ 'Label' ] ) : '' ) ; return $ result ; }
create location msg

@param array $data
@return WxReceiveLocationMsg
create location msg