repository ?? null; $snapshot = $this->snapshot ?? null; if (isset($repository) && isset($snapshot)) { return "/_snapshot/$repository/$snapshot"; } throw new RuntimeException('Missing parameter for the endpoint snapshot.delete'); } public function getParamWhitelist(): array { return [ 'master_timeout' ]; } public function getMethod(): string { return 'DELETE'; } public function setRepository($repository): Delete { if (isset($repository) !== true) { return $this; } $this->repository = $repository; return $this; } public function setSnapshot($snapshot): Delete { if (isset($snapshot) !== true) { return $this; } $this->snapshot = $snapshot; return $this; } }