interface AdapterInterface

Adapter interface.

Methods

string
getName()

Returns the adapter name.

setUserRepository(UserRepositoryInterface $userRepository)

Sets the user repository.

getUserRepository()

Returns the user repository.

setUser(UserEntityInterface $user)

Sets the active user.

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.

Return Value

string

at line 30
setUserRepository(UserRepositoryInterface $userRepository)

Sets the user repository.

Parameters

UserRepositoryInterface $userRepository User repository

at line 37
UserRepositoryInterface getUserRepository()

Returns the user repository.

at line 44
setUser(UserEntityInterface $user)

Sets the active user.

Parameters

UserEntityInterface $user User entity

at line 51
UserEntityInterface|null getUser()

Returns the active user or null if there isn't one.

Return Value

UserEntityInterface|null

at line 58
bool isGuest()

Returns TRUE if we don't have an authenticated user and FALSE if we do.

Return Value

bool

at line 65
bool isLoggedIn()

Returns TRUE if we have an authenticated user and FALSE if we don't.

Return Value

bool