19 lines
386 B
PHP
19 lines
386 B
PHP
<?php
|
|
|
|
namespace App\Core\Home\Calendar;
|
|
|
|
/**
|
|
* Interface for calendar providers
|
|
*/
|
|
interface CalendarInterface
|
|
{
|
|
/**
|
|
* Returns all calendar events within the given time range
|
|
*/
|
|
public function getEvents(\DateTimeInterface $from, \DateTimeInterface $to): array;
|
|
|
|
/**
|
|
* Returns the name of this calendar
|
|
*/
|
|
public function getName(): string;
|
|
}
|