AdapterInterface
interface AdapterInterface
Adapter interface.
Methods
string
getName()
Returns the adapter name.
getUserRepository()
Returns the user repository.
UserEntityInterface|null
getUser()
Returns the active user or null if there isn't one.
bool
isGuest()
Returns TRUE if we don't have an authenticated user and FALSE if we do.
bool
isLoggedIn()
Returns TRUE if we have an authenticated user and FALSE if we don't.
Details
at line 23
string
getName()
Returns the adapter name.
at line 30
setUserRepository(UserRepositoryInterface $userRepository)
Sets the user repository.
at line 37
UserRepositoryInterface
getUserRepository()
Returns the user repository.
at line 44
setUser(UserEntityInterface $user)
Sets the active user.
at line 51
UserEntityInterface|null
getUser()
Returns the active user or null if there isn't one.
at line 58
bool
isGuest()
Returns TRUE if we don't have an authenticated user and FALSE if we do.
at line 65
bool
isLoggedIn()
Returns TRUE if we have an authenticated user and FALSE if we don't.