calendar_id ?? null; if (isset($calendar_id)) { return "/_ml/calendars/$calendar_id"; } throw new RuntimeException('Missing parameter for the endpoint ml.put_calendar'); } public function getParamWhitelist(): array { return []; } public function getMethod(): string { return 'PUT'; } public function setBody($body): PutCalendar { if (isset($body) !== true) { return $this; } $this->body = $body; return $this; } public function setCalendarId($calendar_id): PutCalendar { if (isset($calendar_id) !== true) { return $this; } $this->calendar_id = $calendar_id; return $this; } }