UserRepository
class UserRepository implements UserRepositoryInterface
User repository.
Properties
protected string | $model | Model name. | |
protected string | $identifier | User identifier. |
Methods
__construct(string $model)
Constructor.
createUser(array $properties = [])
No description
setIdentifier(string $identifier)
Sets the user identifier.
User|bool
getByIdentifier($identifier)
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.
Details
at line 44
__construct(string $model)
Constructor.
at line 54
protected ORM
getModel()
Returns a model instance.
at line 23
User
createUser(array $properties = [])
at line 87
setIdentifier(string $identifier)
Sets the user identifier.
at line 23
User|bool
getByIdentifier($identifier)
at line 119
User|bool
getByActionToken(string $token)
Fetches a user by its action token.
at line 130
User|bool
getByAccessToken(string $token)
Fetches a user by its access token.
at line 141
User|bool
getByEmail(string $email)
Fetches a user by its email address.
at line 152
User|bool
getByUsername(string $username)
Fetches a user by its username.
at line 163
User|bool
getById(int $id)
Fetches a user by its id.