Document parameters

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2018-03-22 15:54:55 +01:00
parent 471272d456
commit b723a2b8ca
No known key found for this signature in database
GPG key ID: F941078878347C0C
9 changed files with 30 additions and 0 deletions

View file

@ -35,6 +35,9 @@ abstract class ABackend implements IUserBackend, UserInterface {
/**
* @deprecated 14.0.0
*
* @param int $actions The action to check for
* @return bool
*/
public function implementsActions($actions): bool {
$implements = 0;

View file

@ -30,6 +30,10 @@ namespace OCP\User\Backend;
interface ICheckPasswordBackend {
/**
* @since 14.0.0
*
* @param string $uid The username
* @param string $password The password
* @return string|bool The uid on success false on failure
*/
public function checkPassword(string $loginName, string $password);
}

View file

@ -31,6 +31,8 @@ interface ICountUsersBackend {
/**
* @since 14.0.0
*
* @return int|bool The number of users on success false on failure
*/
public function countUsers();
}

View file

@ -31,6 +31,10 @@ interface ICreateUserBackend {
/**
* @since 14.0.0
*
* @param string $uid The username of the user to create
* @param string $password The password of the new user
* @return bool
*/
public function createUser(string $uid, string $password): bool;
}

View file

@ -31,6 +31,9 @@ interface IGetDisplayNameBackend {
/**
* @since 14.0.0
*
* @param string $uid user ID of the user
* @return string display name
*/
public function getDisplayName($uid): string;
}

View file

@ -31,6 +31,9 @@ interface IGetHomeBackend {
/**
* @since 14.0.0
*
* @param string $uid the username
* @return string|bool Datadir on success false on failure
*/
public function getHome(string $uid);
}

View file

@ -31,6 +31,9 @@ interface IProvideAvatarBackend {
/**
* @since 14.0.0
*
* @param string $uid
* @return bool
*/
public function canChangeAvatar(string $uid): bool;
}

View file

@ -31,6 +31,10 @@ interface ISetDisplayNameBackend {
/**
* @since 14.0.0
*
* @param string $uid The username
* @param string $displayName The new display name
* @return bool
*/
public function setDisplayName(string $uid, string $displayName): bool;
}

View file

@ -31,6 +31,10 @@ interface ISetPasswordBackend {
/**
* @since 14.0.0
*
* @param string $uid The username
* @param string $password The new password
* @return bool
*/
public function setPassword(string $uid, string $password): bool;
}