src/Event/Parser.php
protected function createSubscribeEvent(array $data)
    {
        if (isset($data['EventKey']) && isset($data['Ticket']) && (WxReceiveEvent::EVENT_TYPE_SUBSCRIBE == $data['Event'])) {
            return $this->createScanEvent($data);
        }

        $result = new WxReceiveSubscribeEvent();
        $this->initReceive($result, $data);
        $result->setEvent($data['Event']);

        return $result;
    }
protected function createSubscribeEvent(array $data)
    {
        if (isset($data['EventKey']) && isset($data['Ticket']) && (WxReceiveEvent::EVENT_TYPE_SUBSCRIBE == $data['Event'])) {
            return $this->createScanEvent($data);
        }

        $result = new WxReceiveSubscribeEvent();
        $this->initReceive($result, $data);
        $result->setEvent($data['Event']);

        return $result;
    }
protected function createSubscribeEvent ( array $ data ) { if ( isset ( $ data [ 'EventKey' ] ) && isset ( $ data [ 'Ticket' ] ) && ( WxReceiveEvent :: EVENT_TYPE_SUBSCRIBE == $ data [ 'Event' ] ) ) { return $ this -> createScanEvent ( $ data ) ; } $ result = new WxReceiveSubscribeEvent ( ) ; $ this -> initReceive ( $ result , $ data ) ; $ result -> setEvent ( $ data [ 'Event' ] ) ; return $ result ; }
create WxReceiveEvent instance
@param array $data
@return WxReceiveEvent
create WxReceiveEvent instance