CalendarService
in package
implements
CalendarServiceInterface
Read onlyYes
Used to interact with google calendar interface
Table of Contents
Interfaces
- CalendarServiceInterface
- Interface for calendar services
Properties
- $googleCalendarApiKey : string
- $googleCalendarId : string
- $logger : LoggerInterface
Methods
- __construct() : mixed
- getEvents() : array<string|int, CalendarEvent>
- authenticateClient() : Google_Client
- createClient() : Google_Client
Properties
$googleCalendarApiKey
private
string
$googleCalendarApiKey
$googleCalendarId
private
string
$googleCalendarId
$logger
private
LoggerInterface
$logger
Methods
__construct()
public
__construct(LoggerInterface $logger, string $googleCalendarApiKey, string $googleCalendarId) : mixed
Parameters
- $logger : LoggerInterface
- $googleCalendarApiKey : string
- $googleCalendarId : string
getEvents()
public
getEvents() : array<string|int, CalendarEvent>
Return values
array<string|int, CalendarEvent>authenticateClient()
private
authenticateClient(Google_Client $client) : Google_Client
Parameters
- $client : Google_Client
Return values
Google_ClientcreateClient()
private
createClient() : Google_Client