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