lib/Elastica/Transport/NullTransport.php
public function generateDefaultResponse(array $params): Response
    {
        $response = [
            'took' => 0,
            'timed_out' => false,
            '_shards' => [
                'total' => 0,
                'successful' => 0,
                'failed' => 0,
            ],
            'hits' => [
                'total' => 0,
                'max_score' => null,
                'hits' => [],
            ],
            'params' => $params,
        ];

        return new Response(JSON::stringify($response));
    }
public function generateDefaultResponse(array $params): Response
    {
        $response = [
            'took' => 0,
            'timed_out' => false,
            '_shards' => [
                'total' => 0,
                'successful' => 0,
                'failed' => 0,
            ],
            'hits' => [
                'total' => 0,
                'max_score' => null,
                'hits' => [],
            ],
            'params' => $params,
        ];

        return new Response(JSON::stringify($response));
    }
public function generateDefaultResponse ( array $ params ) : Response { $ response = [ 'took' => 0 , 'timed_out' => false , '_shards' => [ 'total' => 0 , 'successful' => 0 , 'failed' => 0 , ] , 'hits' => [ 'total' => 0 , 'max_score' => null , 'hits' => [ ] , ] , 'params' => $ params , ] ; return new Response ( JSON :: stringify ( $ response ) ) ; }
Generate an example response object.

@param array $params Hostname, port, path, ...

@return Response $response
Generate an example response object .