PHP Interface Cartalyst\Sentinel\Roles\RoleableInterface

Show file Open project: cartalyst/sentinel

Public Methods

Method Description
getRoles ( ) : IteratorAggregate Returns all the associated roles.
inRole ( mixed $role ) : boolean Checks if the user is in the given role.

Method Details

getRoles() public method

Returns all the associated roles.

inRole() public method

Checks if the user is in the given role.
public inRole ( mixed $role ) : boolean
$role mixed
return boolean