repository ?? null; if (isset($repository)) { return "/_snapshot/$repository/_stats"; } throw new RuntimeException('Missing parameter for the endpoint searchable_snapshots.repository_stats'); } public function getParamWhitelist(): array { return []; } public function getMethod(): string { return 'GET'; } public function setRepository($repository): RepositoryStats { if (isset($repository) !== true) { return $this; } $this->repository = $repository; return $this; } }