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|bool
createUser(array $properties = [])
No description
User|bool
getByActionToken(string $token)
Fetches a user by its action token.
User|bool
getByAccessToken(string $token)
Fetches a user by its access token.
User|bool
getByEmail(string $email)
Fetches a user by its email address.
User|bool
getByUsername(string $username)
Fetches a user by its username.
User|bool
getByIdentifier($identifier)
No description
Details
at line 54
__construct(string $model, AuthorizerInterface|null $authorizer = null)
Constructor.
at line 66
protected ORM
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|bool
getByActionToken(string $token)
Fetches a user by its action token.
at line 142
User|bool
getByAccessToken(string $token)
Fetches a user by its access token.
at line 153
User|bool
getByEmail(string $email)
Fetches a user by its email address.
at line 164
User|bool
getByUsername(string $username)
Fetches a user by its username.
at line 175
User|bool
getById(int $id)
Fetches a user by its id.