diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-05-15 10:24:46 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-05-15 10:32:30 +0200 |
commit | 47388e1cfe049265050614f55744adcd77ee8052 (patch) | |
tree | d8bf8cb7ca00a7ba13986c937c9f46e4a5a134ba /lib/private/Authentication/Token/IToken.php | |
parent | 497a4facdf0bf1e2ac78967f5e77f1353cf3e8aa (diff) | |
download | nextcloud-server-47388e1cfe049265050614f55744adcd77ee8052.tar.gz nextcloud-server-47388e1cfe049265050614f55744adcd77ee8052.zip |
Make the Token Auth code strict
In preparation for #9441
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/Authentication/Token/IToken.php')
-rw-r--r-- | lib/private/Authentication/Token/IToken.php | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/lib/private/Authentication/Token/IToken.php b/lib/private/Authentication/Token/IToken.php index a24d31e2ed2..07f72d37670 100644 --- a/lib/private/Authentication/Token/IToken.php +++ b/lib/private/Authentication/Token/IToken.php @@ -1,4 +1,5 @@ <?php +declare(strict_types=1); /** * @copyright Copyright (c) 2016, ownCloud, Inc. * @@ -37,61 +38,65 @@ interface IToken extends JsonSerializable { * * @return int */ - public function getId(); + public function getId(): int; /** * Get the user UID * * @return string */ - public function getUID(); + public function getUID(): string; /** * Get the login name used when generating the token * * @return string */ - public function getLoginName(); + public function getLoginName(): string; /** * Get the (encrypted) login password * * @return string */ - public function getPassword(); + public function getPassword(): string; /** * Get the timestamp of the last password check * * @return int */ - public function getLastCheck(); + public function getLastCheck(): int; /** * Set the timestamp of the last password check * * @param int $time */ - public function setLastCheck($time); + public function setLastCheck(int $time); /** * Get the authentication scope for this token * * @return string */ - public function getScope(); + public function getScope(): string; /** * Get the authentication scope for this token * * @return array */ - public function getScopeAsArray(); + public function getScopeAsArray(): array; /** * Set the authentication scope for this token * * @param array $scope */ - public function setScope($scope); + public function setScope(array $scope); + + public function getName(): string; + + public function getRemember(): int; } |