1 | <?php |
||
8 | class GoogleCalendarFactory |
||
9 | { |
||
10 | /** |
||
11 | * @param string $calendarId |
||
12 | * |
||
13 | * @return \Spatie\GoogleCalendar\GoogleCalendar |
||
14 | */ |
||
15 | public static function createForCalendarId(string $calendarId) : GoogleCalendar |
||
25 | |||
26 | /** |
||
27 | * @param array $config |
||
28 | * |
||
29 | * @return \Google_Client |
||
30 | */ |
||
31 | public static function createAuthenticatedGoogleClient(array $config) : Google_Client |
||
43 | |||
44 | /** |
||
45 | * @param \Google_Service_Calendar $service |
||
46 | * @param string $calendarId |
||
47 | * |
||
48 | * @return \Spatie\GoogleCalendar\GoogleCalendar |
||
49 | */ |
||
50 | protected static function createCalendarClient(Google_Service_Calendar $service, string $calendarId) : GoogleCalendar |
||
54 | } |
||
55 |