id ?? null; if (isset($id)) { return "/_watcher/watch/$id"; } throw new RuntimeException('Missing parameter for the endpoint watcher.get_watch'); } public function getParamWhitelist(): array { return [ ]; } public function getMethod(): string { return 'GET'; } }