index ?? null; if (isset($index)) { return "/$index/_ccr/follow"; } throw new RuntimeException('Missing parameter for the endpoint ccr.follow'); } public function getParamWhitelist(): array { return [ 'wait_for_active_shards' ]; } public function getMethod(): string { return 'PUT'; } public function setBody($body): Follow { if (isset($body) !== true) { return $this; } $this->body = $body; return $this; } }