1
0

BeforeTemplateRenderedEvent.php 622 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCP\Profile;
  8. use OCP\EventDispatcher\Event;
  9. /**
  10. * Emitted before the rendering step of the public profile page happens.
  11. *
  12. * @since 25.0.0
  13. */
  14. class BeforeTemplateRenderedEvent extends Event {
  15. private string $userId;
  16. /**
  17. * @since 25.0.0
  18. */
  19. public function __construct(string $userId) {
  20. parent::__construct();
  21. $this->userId = $userId;
  22. }
  23. /**
  24. * @since 25.0.0
  25. */
  26. public function getUserId(): string {
  27. return $this->userId;
  28. }
  29. }