id ?? null; if (isset($id)) { return "/_rollup/job/$id/_stop"; } throw new RuntimeException('Missing parameter for the endpoint rollup.stop_job'); } public function getParamWhitelist(): array { return [ 'wait_for_completion', 'timeout' ]; } public function getMethod(): string { return 'POST'; } }