Skip to content

Commit

Permalink
Document parameters
Browse files Browse the repository at this point in the history
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
  • Loading branch information
rullzer committed Mar 22, 2018
1 parent fe60156 commit 385374d
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/public/User/Backend/ABackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 4 additions & 0 deletions lib/public/User/Backend/ICheckPasswordBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
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);
}
2 changes: 2 additions & 0 deletions lib/public/User/Backend/ICountUsersBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
4 changes: 4 additions & 0 deletions lib/public/User/Backend/ICreateUserBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
3 changes: 3 additions & 0 deletions lib/public/User/Backend/IGetDisplayNameBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
3 changes: 3 additions & 0 deletions lib/public/User/Backend/IGetHomeBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
3 changes: 3 additions & 0 deletions lib/public/User/Backend/IProvideAvatarBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ interface IProvideAvatarBackend {

/**
* @since 14.0.0
*
* @param string $uid
* @return bool
*/
public function canChangeAvatar(string $uid): bool;
}
4 changes: 4 additions & 0 deletions lib/public/User/Backend/ISetDisplayNameBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
4 changes: 4 additions & 0 deletions lib/public/User/Backend/ISetPasswordBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 385374d

Please sign in to comment.