1
0

OutOfOfficeStartedEvent.php 607 B

12345678910111213141516171819202122232425262728293031323334
  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 started
  12. *
  13. * @since 28.0.0
  14. */
  15. class OutOfOfficeStartedEvent 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. }