PHP Class App\Services\Repositories\UserRepository

Inheritance: extends Repository
Mostra file Open project: printempw/blessing-skin-server Class Usage Examples

Public Methods

Method Description
get ( string $identification, string $type = 'uid' ) : mixed Get a user from repository and cache it.
getCurrentUser ( )
has ( string $identification, string $type = 'uid' ) : boolean Determine if a user exists in the repository.

Method Details

get() public method

Get a user from repository and cache it.
public get ( string $identification, string $type = 'uid' ) : mixed
$identification string
$type string
return mixed

getCurrentUser() public method

public getCurrentUser ( )

has() public method

Determine if a user exists in the repository.
public has ( string $identification, string $type = 'uid' ) : boolean
$identification string
$type string Must be one of properties defined in User class
return boolean