@@ 103-110 (lines=8) @@ | ||
100 | * |
|
101 | * @return mixed |
|
102 | */ |
|
103 | public function insertEvent($event) |
|
104 | { |
|
105 | if ($event instanceof Event) { |
|
106 | $event = $event->googleEvent; |
|
107 | } |
|
108 | ||
109 | return $this->calendarService->events->insert($this->calendarId, $event); |
|
110 | } |
|
111 | ||
112 | /** |
|
113 | * @param \Spatie\GoogleCalendar\Event|Google_Service_Calendar_Event $event |
|
@@ 117-124 (lines=8) @@ | ||
114 | * |
|
115 | * @return \Google_Service_Calendar_Event |
|
116 | */ |
|
117 | public function updateEvent($event) |
|
118 | { |
|
119 | if ($event instanceof Event) { |
|
120 | $event = $event->googleEvent; |
|
121 | } |
|
122 | ||
123 | return $this->calendarService->events->update($this->calendarId, $event->id, $event); |
|
124 | } |
|
125 | ||
126 | /** |
|
127 | * @param string|\Spatie\GoogleCalendar\Event $eventId |