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