1<?php
2
3declare(strict_types = 1);
4
5namespace Elasticsearch\Namespaces;
6
7use Elasticsearch\Endpoints\Remote\Info;
8
9/**
10 * Class RemoteNamespace
11 *
12 * @category Elasticsearch
13 * @package  Elasticsearch\Namespaces\TasksNamespace
14 * @author   Zachary Tong <zach@elastic.co>
15 * @license  http://www.apache.org/licenses/LICENSE-2.0 Apache2
16 * @link     http://elastic.co
17 */
18class RemoteNamespace extends AbstractNamespace
19{
20    /**
21     * @return callable|array
22     */
23    public function info(array $params = [])
24    {
25        /**
26 * @var callable $endpointBuilder
27*/
28        $endpointBuilder = $this->endpoints;
29
30        /**
31 * @var Info $endpoint
32*/
33        $endpoint = $endpointBuilder('Remote\Info');
34        $endpoint->setParams($params);
35
36        return $this->performRequest($endpoint);
37    }
38}
39