task_id ?? null; if (isset($task_id)) { return "/_tasks/$task_id"; } throw new RuntimeException('Missing parameter for the endpoint tasks.get'); } public function getParamWhitelist(): array { return [ 'wait_for_completion', 'timeout' ]; } public function getMethod(): string { return 'GET'; } public function setTaskId($task_id): Get { if (isset($task_id) !== true) { return $this; } $this->task_id = $task_id; return $this; } }