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 54
__construct(string $model, AuthorizerInterface|null $authorizer = null)
Constructor.
at line 66
protected User
getModel()
Returns a model instance.
at line 78
setIdentifier(string $identifier)
Sets the user identifier.
at line 25
User
createUser(array $properties = [])
at line 131
User|null
getByActionToken(string $token)
Fetches a user by its action token.
at line 142
User|null
getByAccessToken(string $token)
Fetches a user by its access token.
at line 153
User|null
getByEmail(string $email)
Fetches a user by its email address.
at line 164
User|null
getByUsername(string $username)
Fetches a user by its username.
at line 175
User|null
getById(int $id)
Fetches a user by its id.