index ?? null; $field = $this->field ?? null; $zoom = $this->zoom ?? null; $x = $this->x ?? null; $y = $this->y ?? null; if (isset($index) && isset($field) && isset($zoom) && isset($x) && isset($y)) { return "/$index/_mvt/$field/$zoom/$x/$y"; } throw new RuntimeException('Missing parameter for the endpoint search_mvt'); } public function getParamWhitelist(): array { return [ 'exact_bounds', 'extent', 'grid_precision', 'grid_type', 'size' ]; } public function getMethod(): string { return isset($this->body) ? 'POST' : 'GET'; } public function setBody($body): SearchMvt { if (isset($body) !== true) { return $this; } $this->body = $body; return $this; } public function setField($field): SearchMvt { if (isset($field) !== true) { return $this; } $this->field = $field; return $this; } public function setZoom($zoom): SearchMvt { if (isset($zoom) !== true) { return $this; } $this->zoom = $zoom; return $this; } public function setX($x): SearchMvt { if (isset($x) !== true) { return $this; } $this->x = $x; return $this; } public function setY($y): SearchMvt { if (isset($y) !== true) { return $this; } $this->y = $y; return $this; } }