1 | <?php |
||
8 | class RoleRepository |
||
9 | { |
||
10 | /** |
||
11 | * Create a new user instance after a valid registration. |
||
12 | * |
||
13 | * @param array $data The data used to create the user. |
||
14 | * |
||
15 | * @return \Xetaravel\Models\User |
||
16 | */ |
||
17 | public static function create(array $data): Role |
||
26 | |||
27 | /** |
||
28 | * Update the role informations after a valid update request. |
||
29 | * |
||
30 | * @param array $data The data used to update the user. |
||
31 | * @param \Xetaravel\Models\Role $role The role to update. |
||
32 | * |
||
33 | * @return bool |
||
34 | */ |
||
35 | public static function update(array $data, Role $role): bool |
||
44 | } |
||
45 |