watch_id ?? null; if (isset($watch_id)) { return "/_watcher/watch/$watch_id/_activate"; } throw new RuntimeException('Missing parameter for the endpoint watcher.activate_watch'); } public function getParamWhitelist(): array { return []; } public function getMethod(): string { return 'PUT'; } public function setWatchId($watch_id): ActivateWatch { if (isset($watch_id) !== true) { return $this; } $this->watch_id = $watch_id; return $this; } }