1 | <?php namespace Modules\User\Repositories\Sentry; |
||
6 | class SentryRoleRepository implements RoleRepository |
||
7 | { |
||
8 | /** |
||
9 | * Return all the roles |
||
10 | * @return mixed |
||
11 | */ |
||
12 | public function all() |
||
16 | |||
17 | /** |
||
18 | * Create a role resource |
||
19 | * @return mixed |
||
20 | */ |
||
21 | public function create($data) |
||
26 | |||
27 | /** |
||
28 | * Find a role by its id |
||
29 | * @param $id |
||
30 | * @return mixed |
||
31 | */ |
||
32 | public function find($id) |
||
36 | |||
37 | /** |
||
38 | * Update a role |
||
39 | * @param $id |
||
40 | * @param $data |
||
41 | * @return mixed |
||
42 | */ |
||
43 | public function update($id, $data) |
||
50 | |||
51 | /** |
||
52 | * Delete a role |
||
53 | * @param $id |
||
54 | * @return mixed |
||
55 | */ |
||
56 | public function delete($id) |
||
62 | |||
63 | /** |
||
64 | * Find a role by its name |
||
65 | * @param string $name |
||
66 | * @return mixed |
||
67 | */ |
||
68 | public function findByName($name) |
||
72 | } |
||
73 |