UserService uses Singleton
Table of Contents
Methods
- __wakeup() : mixed
- checkUser() : bool
- getInstance() : static
- getUser() : User|null
Methods
__wakeup()
public
__wakeup() : mixed
checkUser()
public
checkUser(int $userId, string $hash) : bool
Parameters
- $userId : int
- $hash : string
Return values
boolgetInstance()
public
static getInstance() : static
Return values
staticgetUser()
public
getUser(int $userId) : User|null
Parameters
- $userId : int