1
0

IProvidesPersonalSettings.php 688 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCP\Authentication\TwoFactorAuth;
  8. use OCP\IUser;
  9. /**
  10. * Interface for admins that have personal settings. These settings will be shown in the
  11. * security sections. Some information like the display name of the provider is read
  12. * from the provider directly.
  13. *
  14. * @since 15.0.0
  15. */
  16. interface IProvidesPersonalSettings extends IProvider {
  17. /**
  18. * @param IUser $user
  19. *
  20. * @return IPersonalProviderSettings
  21. *
  22. * @since 15.0.0
  23. */
  24. public function getPersonalSettings(IUser $user): IPersonalProviderSettings;
  25. }