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