lib/Elastica/Transport/Guzzle.php
protected function _getGuzzleClient(bool $persistent = true): Client
    {
        if (!$persistent || !self::$_guzzleClientConnection) {
            self::$_guzzleClientConnection = new Client();
        }

        return self::$_guzzleClientConnection;
    }
protected function _getGuzzleClient(bool $persistent = true): Client
    {
        if (!$persistent || !self::$_guzzleClientConnection) {
            self::$_guzzleClientConnection = new Client();
        }

        return self::$_guzzleClientConnection;
    }
protected function _getGuzzleClient ( bool $ persistent = true ) : Client { if ( ! $ persistent || ! self :: $ _guzzleClientConnection ) { self :: $ _guzzleClientConnection = new Client ( ) ; } return self :: $ _guzzleClientConnection ; }
Return Guzzle resource.

@param bool $persistent False if not persistent connection

@return Client
Return Guzzle resource .