public static function receive($input = null)
    {
        if (is_null($input)) {
            if (self::$receivedWebhook !== null) {
                $input = self::$receivedWebhook;
            } else {
                $input = file_get_contents("php://input");
            }
        }

        if (!is_null($input) && $input != '') {
            return self::processWebhook($input);
        }

        return false;
    }
public static function receive($input = null)
    {
        if (is_null($input)) {
            if (self::$receivedWebhook !== null) {
                $input = self::$receivedWebhook;
            } else {
                $input = file_get_contents("php://input");
            }
        }

        if (!is_null($input) && $input != '') {
            return self::processWebhook($input);
        }

        return false;
    }
public static function receive ( $ input = null ) { if ( is_null ( $ input ) ) { if ( self :: $ receivedWebhook !== null ) { $ input = self :: $ receivedWebhook ; } else { $ input = file_get_contents ( "php://input" ) ; } } if ( ! is_null ( $ input ) && $ input != '' ) { return self :: processWebhook ( $ input ) ; } return false ; }
Retrieve the incoming webhook request as sent.

@param string $input An optional raw POST body to use instead of php://input - mainly for unit testing.

@return array|false    An associative array containing the details of the received webhook
Retrieve the incoming webhook request as sent .