1<?php 2 3declare(strict_types = 1); 4 5namespace Elasticsearch\Endpoints\Cluster\Settings; 6 7use Elasticsearch\Endpoints\AbstractEndpoint; 8 9/** 10 * Class Get 11 * 12 * @category Elasticsearch 13 * @package Elasticsearch\Endpoints\Cluster\Settings 14 * @author Zachary Tong <zach@elastic.co> 15 * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 16 * @link http://elastic.co 17 */ 18 19class Get extends AbstractEndpoint 20{ 21 public function getURI(): string 22 { 23 return "/_cluster/settings"; 24 } 25 26 public function getParamWhitelist(): array 27 { 28 return [ 29 'flat_settings', 30 'master_timeout', 31 'timeout', 32 'include_defaults' 33 ]; 34 } 35 36 public function getMethod(): string 37 { 38 return 'GET'; 39 } 40} 41