Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Drupal\authorization_drupal_roles; |
| 6 | |
| 7 | /** |
| 8 | * Interface Authorization Drupal Roles Interface. |
| 9 | */ |
| 10 | interface AuthorizationDrupalRolesInterface { |
| 11 | |
| 12 | /** |
| 13 | * Get roles. |
| 14 | * |
| 15 | * @param int $user_id |
| 16 | * The user ID. |
| 17 | * @param string $profile_id |
| 18 | * The profile ID. |
| 19 | * |
| 20 | * @return array |
| 21 | * The roles. |
| 22 | */ |
| 23 | public function getRoles($user_id, string $profile_id); |
| 24 | |
| 25 | /** |
| 26 | * Set roles. |
| 27 | * |
| 28 | * @param int $user_id |
| 29 | * The user ID. |
| 30 | * @param string $profile_id |
| 31 | * The profile ID. |
| 32 | * @param array $roles |
| 33 | * The roles. |
| 34 | */ |
| 35 | public function setRoles($user_id, string $profile_id, array $roles); |
| 36 | |
| 37 | } |