UserRepository
class UserRepository implements UserRepositoryInterface
User repository.
Properties
protected string | $model | Model name. | |
protected AuthorizerInterface|null | $authorizer | Authorizer. | |
protected string | $identifier | User identifier. |
Methods
setIdentifier(string $identifier)
Sets the user identifier.
User|null
createUser(array $properties = [])
No description
User|null
getByActionToken(string $token)
Fetches a user by its action token.
User|null
getByAccessToken(string $token)
Fetches a user by its access token.
User|null
getByEmail(string $email)
Fetches a user by its email address.
User|null
getByUsername(string $username)
Fetches a user by its username.
User|null
getByIdentifier($identifier)
No description
Details
at line 52
__construct(string $model, AuthorizerInterface|null $authorizer = null)
Constructor.
at line 64
protected User
getModel()
Returns a model instance.
at line 76
setIdentifier(string $identifier)
Sets the user identifier.
at line 23
User
createUser(array $properties = [])
at line 129
User|null
getByActionToken(string $token)
Fetches a user by its action token.
at line 140
User|null
getByAccessToken(string $token)
Fetches a user by its access token.
at line 151
User|null
getByEmail(string $email)
Fetches a user by its email address.
at line 162
User|null
getByUsername(string $username)
Fetches a user by its username.
at line 173
User|null
getById(int $id)
Fetches a user by its id.