2021-10-12 10:30:00 -04:00
|
|
|
<?php
|
2022-06-23 16:17:53 -04:00
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
2021-10-12 10:30:00 -04:00
|
|
|
/**
|
2024-05-23 03:26:56 -04:00
|
|
|
* SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2021-10-12 10:30:00 -04:00
|
|
|
*/
|
|
|
|
|
namespace OCP\Calendar;
|
|
|
|
|
|
|
|
|
|
use OCP\Calendar\Exceptions\CalendarException;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Extends the current ICalendar interface
|
|
|
|
|
* to add a public write method
|
|
|
|
|
*
|
|
|
|
|
* @since 23.0.0
|
|
|
|
|
*/
|
|
|
|
|
interface ICreateFromString extends ICalendar {
|
|
|
|
|
/**
|
|
|
|
|
* @since 23.0.0
|
|
|
|
|
*
|
|
|
|
|
* @throws CalendarException
|
|
|
|
|
*/
|
|
|
|
|
public function createFromString(string $name, string $calendarData): void;
|
|
|
|
|
}
|