@@ -18,6 +18,9 @@ discard block |
||
| 18 | 18 | |
| 19 | 19 | protected $attendees; |
| 20 | 20 | |
| 21 | + /** |
|
| 22 | + * @param null|string $calendarId |
|
| 23 | + */ |
|
| 21 | 24 | public static function createFromGoogleCalendarEvent(Google_Service_Calendar_Event $googleEvent, $calendarId) |
| 22 | 25 | { |
| 23 | 26 | $event = new static(); |
@@ -140,6 +143,9 @@ discard block |
||
| 140 | 143 | return static::createFromGoogleCalendarEvent($googleEvent, $calendarId); |
| 141 | 144 | } |
| 142 | 145 | |
| 146 | + /** |
|
| 147 | + * @param string $method |
|
| 148 | + */ |
|
| 143 | 149 | public function save($method = null): Event |
| 144 | 150 | { |
| 145 | 151 | $method = $method ?? ($this->exists() ? 'updateEvent' : 'insertEvent'); |