chore: Аннотация типов
This commit is contained in:
parent
cf0bc435ce
commit
f07a668b30
14 changed files with 62 additions and 19 deletions
|
|
@ -2,11 +2,18 @@
|
|||
|
||||
namespace ctiso\Role;
|
||||
use ctiso\Database\Statement;
|
||||
use ctiso\Database\PDOStatement;
|
||||
|
||||
interface UserInterface {
|
||||
function getUserByQuery(Statement $stmt);
|
||||
function getUserByLogin(string $login);
|
||||
function getUserById(int $id);
|
||||
function getUserByQuery(Statement $stmt): ?PDOStatement;
|
||||
function getUserByLogin(string $login): ?PDOStatement;
|
||||
function getUserById(int $id): ?PDOStatement;
|
||||
function getName(): string;
|
||||
|
||||
/**
|
||||
* @param string $random
|
||||
* @param PDOStatement $result
|
||||
* @return PDOStatement|bool
|
||||
*/
|
||||
function setSID(string $random, $result);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue