private static function processWebhook($input)
    {
        self::$receivedWebhook = $input;
        parse_str($input, $result);
        if ($result && isset($result['type'])) {
            self::dispatchWebhookEvent($result['type'], $result['data']);
            return $result;
        }

        return false;
    }
private static function processWebhook($input)
    {
        self::$receivedWebhook = $input;
        parse_str($input, $result);
        if ($result && isset($result['type'])) {
            self::dispatchWebhookEvent($result['type'], $result['data']);
            return $result;
        }

        return false;
    }
private static function processWebhook ( $ input ) { self :: $ receivedWebhook = $ input ; parse_str ( $ input , $ result ) ; if ( $ result && isset ( $ result [ 'type' ] ) ) { self :: dispatchWebhookEvent ( $ result [ 'type' ] , $ result [ 'data' ] ) ; return $ result ; } return false ; }
Process the raw request into a PHP array and dispatch any matching subscription callbacks

@param string $input The raw HTTP POST request

@return array|false    An associative array containing the details of the received webhook
Process the raw request into a PHP array and dispatch any matching subscription callbacks