PHP Interface Cartalyst\Sentinel\Roles\RoleRepositoryInterface

Show file Open project: cartalyst/sentinel Interface Usage Examples

Public Methods

Method Description
findById ( integer $id ) : Cartalyst\Sentinel\Roles\RoleInterface Finds a role by the given primary key.
findByName ( string $name ) : Cartalyst\Sentinel\Roles\RoleInterface Finds a role by the given name.
findBySlug ( string $slug ) : Cartalyst\Sentinel\Roles\RoleInterface Finds a role by the given slug.

Method Details

findById() public method

Finds a role by the given primary key.
public findById ( integer $id ) : Cartalyst\Sentinel\Roles\RoleInterface
$id integer
return Cartalyst\Sentinel\Roles\RoleInterface

findByName() public method

Finds a role by the given name.
public findByName ( string $name ) : Cartalyst\Sentinel\Roles\RoleInterface
$name string
return Cartalyst\Sentinel\Roles\RoleInterface

findBySlug() public method

Finds a role by the given slug.
public findBySlug ( string $slug ) : Cartalyst\Sentinel\Roles\RoleInterface
$slug string
return Cartalyst\Sentinel\Roles\RoleInterface