1: | <?php |
2: | |
3: | declare(strict_types=1); |
4: | |
5: | |
6: | |
7: | |
8: | |
9: | |
10: | |
11: | |
12: | |
13: | |
14: | |
15: | |
16: | namespace OpenSearch\Endpoints; |
17: | |
18: | |
19: | |
20: | |
21: | class DeletePit extends AbstractEndpoint |
22: | { |
23: | public function getURI(): string |
24: | { |
25: | return "/_search/point_in_time"; |
26: | } |
27: | |
28: | public function getParamWhitelist(): array |
29: | { |
30: | return [ |
31: | 'pretty', |
32: | 'human', |
33: | 'error_trace', |
34: | 'source', |
35: | 'filter_path' |
36: | ]; |
37: | } |
38: | |
39: | public function getMethod(): string |
40: | { |
41: | return 'DELETE'; |
42: | } |
43: | |
44: | public function setBody($body): static |
45: | { |
46: | if (is_null($body)) { |
47: | return $this; |
48: | } |
49: | $this->body = $body; |
50: | |
51: | return $this; |
52: | } |
53: | } |
54: | |