PHP Interface Cartalyst\Sentinel\Roles\RoleRepositoryInterface

Afficher le fichier Open project: cartalyst/sentinel Interface Usage Examples

Méthodes publiques

Méthode 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 méthode

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

findByName() public méthode

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

findBySlug() public méthode

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