1
0

OutOfOfficeClearedEvent.php 612 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCP\User\Events;
  8. use OCP\EventDispatcher\Event;
  9. use OCP\User\IOutOfOfficeData;
  10. /**
  11. * Emitted when a user's out-of-office period is cleared
  12. *
  13. * @since 28.0.0
  14. */
  15. class OutOfOfficeClearedEvent extends Event {
  16. /**
  17. * @since 28.0.0
  18. */
  19. public function __construct(
  20. private IOutOfOfficeData $data,
  21. ) {
  22. parent::__construct();
  23. }
  24. /**
  25. * @since 28.0.0
  26. */
  27. public function getData(): IOutOfOfficeData {
  28. return $this->data;
  29. }
  30. }