aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/User/Backend/ICountMappedUsersBackend.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/User/Backend/ICountMappedUsersBackend.php')
-rw-r--r--lib/public/User/Backend/ICountMappedUsersBackend.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/public/User/Backend/ICountMappedUsersBackend.php b/lib/public/User/Backend/ICountMappedUsersBackend.php
new file mode 100644
index 00000000000..39f84f74f4a
--- /dev/null
+++ b/lib/public/User/Backend/ICountMappedUsersBackend.php
@@ -0,0 +1,22 @@
+<?php
+
+declare(strict_types=1);
+
+/**
+ * SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
+ */
+
+namespace OCP\User\Backend;
+
+/**
+ * @since 24.0.7
+ */
+interface ICountMappedUsersBackend {
+ /**
+ * @since 24.0.7
+ *
+ * @return int The number of users already mapped to a Nextcloud account
+ */
+ public function countMappedUsers(): int;
+}