aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/User/Events/UserIdAssignedEvent.php
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2023-03-13 18:46:30 +0100
committerCôme Chilliet <come.chilliet@nextcloud.com>2024-09-10 14:06:11 +0200
commit986a3d45f8fab60c8e7dddc7015bd60c6ee356d4 (patch)
tree1c416746a86b482c867d269bcd99b95a8af02f1e /lib/public/User/Events/UserIdAssignedEvent.php
parent82ba7d763bb5fe2fea67df0475ba2516389575ae (diff)
downloadnextcloud-server-986a3d45f8fab60c8e7dddc7015bd60c6ee356d4.tar.gz
nextcloud-server-986a3d45f8fab60c8e7dddc7015bd60c6ee356d4.zip
feat(user_ldap): Introduce user id assigned typed events for LDAP usage
Based on work from https://github.com/nextcloud/server/pull/32019 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Diffstat (limited to 'lib/public/User/Events/UserIdAssignedEvent.php')
-rw-r--r--lib/public/User/Events/UserIdAssignedEvent.php33
1 files changed, 33 insertions, 0 deletions
diff --git a/lib/public/User/Events/UserIdAssignedEvent.php b/lib/public/User/Events/UserIdAssignedEvent.php
new file mode 100644
index 00000000000..63daca09820
--- /dev/null
+++ b/lib/public/User/Events/UserIdAssignedEvent.php
@@ -0,0 +1,33 @@
+<?php
+
+declare(strict_types=1);
+
+/**
+ * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
+ */
+
+namespace OCP\User\Events;
+
+use OCP\EventDispatcher\Event;
+
+/**
+ * @since 31.0.0
+ */
+class UserIdAssignedEvent extends Event {
+ /**
+ * @since 31.0.0
+ */
+ public function __construct(
+ private string $userId,
+ ) {
+ parent::__construct();
+ }
+
+ /**
+ * @since 31.0.0
+ */
+ public function getUserId(): string {
+ return $this->userId;
+ }
+}