mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
39 lines
1.0 KiB
PHP
39 lines
1.0 KiB
PHP
<?php
|
|
|
|
/**
|
|
* Chill is a software for social workers
|
|
*
|
|
* For the full copyright and license information, please view
|
|
* the LICENSE file that was distributed with this source code.
|
|
*/
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Chill\CalendarBundle\RemoteCalendar\Connector;
|
|
|
|
use Chill\CalendarBundle\RemoteCalendar\Model\RemoteEvent;
|
|
use Chill\MainBundle\Entity\User;
|
|
use DateTimeImmutable;
|
|
use Symfony\Component\HttpFoundation\Response;
|
|
|
|
interface RemoteCalendarConnectorInterface
|
|
{
|
|
/**
|
|
* Return a response, more probably a RedirectResponse, where the user
|
|
* will be able to fullfill requirements to prepare this connector and
|
|
* make it ready.
|
|
*/
|
|
public function getMakeReadyResponse(string $returnPath): Response;
|
|
|
|
/**
|
|
* Return true if the connector is ready to act as a proxy for reading
|
|
* remote calendars.
|
|
*/
|
|
public function isReady(): bool;
|
|
|
|
/**
|
|
* @return array|RemoteEvent[]
|
|
*/
|
|
public function listEventsForUser(User $user, DateTimeImmutable $startDate, DateTimeImmutable $endDate): array;
|
|
}
|