Bristol SU Support Package
Public Member Functions | List of all members
BristolSU\Support\Authentication\Contracts\Authentication Interface Reference
Inheritance diagram for BristolSU\Support\Authentication\Contracts\Authentication:
Inheritance graph
[legend]

Public Member Functions

 getGroup ()
 
 getRole ()
 
 getUser ()
 
 setGroup (Group $group)
 
 setRole (Role $role)
 
 setUser (User $user)
 
 reset ()
 

Detailed Description

Authentication manager interface.

Sets and retrieves the current user, group or role

Definition at line 15 of file Authentication.php.

Member Function Documentation

◆ getGroup()

BristolSU\Support\Authentication\Contracts\Authentication::getGroup ( )

◆ getRole()

BristolSU\Support\Authentication\Contracts\Authentication::getRole ( )

◆ getUser()

BristolSU\Support\Authentication\Contracts\Authentication::getUser ( )

◆ reset()

BristolSU\Support\Authentication\Contracts\Authentication::reset ( )

Reset any authentication persistence, to bring the authentication back to an initial clean state.

Returns
void

Implemented in BristolSU\Support\Authentication\ApiAuthentication, BristolSU\Support\Testing\Authentication\SessionAuthentication, and BristolSU\Support\Authentication\WebRequestAuthentication.

◆ setGroup()

BristolSU\Support\Authentication\Contracts\Authentication::setGroup ( Group  $group)

◆ setRole()

BristolSU\Support\Authentication\Contracts\Authentication::setRole ( Role  $role)

◆ setUser()

BristolSU\Support\Authentication\Contracts\Authentication::setUser ( User  $user)

Set a user

Parameters
User$user
Returns
void

Implemented in BristolSU\Support\Testing\Authentication\SessionAuthentication.


The documentation for this interface was generated from the following file: