OutOfOfficeStartedEvent.php 601 B

1234567891011121314151617181920212223242526272829303132
  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(private IOutOfOfficeData $data) {
  20. parent::__construct();
  21. }
  22. /**
  23. * @since 28.0.0
  24. */
  25. public function getData(): IOutOfOfficeData {
  26. return $this->data;
  27. }
  28. }