repository ?? null; if (isset($repository)) { return "/_snapshot/$repository/_verify"; } throw new RuntimeException('Missing parameter for the endpoint snapshot.verify_repository'); } public function getParamWhitelist(): array { return [ 'master_timeout', 'timeout' ]; } public function getMethod(): string { return 'POST'; } public function setRepository($repository): VerifyRepository { if (isset($repository) !== true) { return $this; } $this->repository = $repository; return $this; } }