ISetDisplayNameBackend.php 553 B

1234567891011121314151617181920212223242526
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCP\User\Backend;
  8. /**
  9. * @since 14.0.0
  10. */
  11. interface ISetDisplayNameBackend {
  12. /**
  13. * @since 14.0.0
  14. *
  15. * @param string $uid The username
  16. * @param string $displayName The new display name
  17. * @return bool
  18. *
  19. * @since 25.0.0 Throw InvalidArgumentException
  20. * @throws \InvalidArgumentException
  21. */
  22. public function setDisplayName(string $uid, string $displayName): bool;
  23. }