ICreateFromString.php 525 B

12345678910111213141516171819202122232425
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCP\Calendar;
  8. use OCP\Calendar\Exceptions\CalendarException;
  9. /**
  10. * Extends the current ICalendar interface
  11. * to add a public write method
  12. *
  13. * @since 23.0.0
  14. */
  15. interface ICreateFromString extends ICalendar {
  16. /**
  17. * @since 23.0.0
  18. *
  19. * @throws CalendarException
  20. */
  21. public function createFromString(string $name, string $calendarData): void;
  22. }