2018-03-22 03:59:10 -04:00
|
|
|
<?php
|
2019-12-03 13:57:53 -05:00
|
|
|
|
2018-03-22 03:59:10 -04:00
|
|
|
declare(strict_types=1);
|
2019-12-03 13:57:53 -05:00
|
|
|
|
2018-03-22 03:59:10 -04:00
|
|
|
/**
|
2024-05-23 03:26:56 -04:00
|
|
|
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2018-03-22 03:59:10 -04:00
|
|
|
*/
|
|
|
|
|
namespace OCP\User\Backend;
|
|
|
|
|
|
2018-03-22 05:53:29 -04:00
|
|
|
/**
|
|
|
|
|
* @since 14.0.0
|
|
|
|
|
*/
|
2018-03-22 03:59:10 -04:00
|
|
|
interface ISetDisplayNameBackend {
|
2018-03-22 05:53:29 -04:00
|
|
|
/**
|
|
|
|
|
* @since 14.0.0
|
2018-03-22 10:54:55 -04:00
|
|
|
*
|
|
|
|
|
* @param string $uid The username
|
|
|
|
|
* @param string $displayName The new display name
|
|
|
|
|
* @return bool
|
2022-08-19 16:02:57 -04:00
|
|
|
*
|
|
|
|
|
* @since 25.0.0 Throw InvalidArgumentException
|
|
|
|
|
* @throws \InvalidArgumentException
|
2018-03-22 05:53:29 -04:00
|
|
|
*/
|
2018-03-22 03:59:10 -04:00
|
|
|
public function setDisplayName(string $uid, string $displayName): bool;
|
|
|
|
|
}
|