1: | <?php |
2: | |
3: | namespace OpenSearch; |
4: | |
5: | |
6: | |
7: | |
8: | interface EndpointInterface |
9: | { |
10: | |
11: | |
12: | |
13: | |
14: | |
15: | public function getParamWhitelist(): array; |
16: | |
17: | |
18: | |
19: | |
20: | public function getURI(): string; |
21: | |
22: | |
23: | |
24: | |
25: | public function getMethod(): string; |
26: | |
27: | |
28: | |
29: | |
30: | public function setParams(array $params): static; |
31: | |
32: | |
33: | |
34: | |
35: | public function getParams(): array; |
36: | |
37: | |
38: | |
39: | |
40: | |
41: | |
42: | public function getOptions(): array; |
43: | |
44: | |
45: | |
46: | |
47: | public function getIndex(): ?string; |
48: | |
49: | |
50: | |
51: | |
52: | |
53: | |
54: | |
55: | |
56: | public function setIndex(string|array|null $index): static; |
57: | |
58: | |
59: | |
60: | |
61: | |
62: | |
63: | |
64: | |
65: | public function setId(int|string|null $docID): static; |
66: | |
67: | |
68: | |
69: | |
70: | public function getBody(): string|array|null; |
71: | |
72: | |
73: | |
74: | |
75: | |
76: | |
77: | public function setBody(string|iterable|null $body): static; |
78: | |
79: | } |
80: | |