OutOfOfficeChangedEvent.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 has changed
  12. *
  13. * @since 28.0.0
  14. */
  15. class OutOfOfficeChangedEvent 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. }