1 | <?php |
||
10 | class User_Role_Condition extends Condition { |
||
11 | |||
12 | /** |
||
13 | * Get roles for a user from the environment |
||
14 | * |
||
15 | * @param array $environment |
||
16 | * @return array<string> |
||
17 | */ |
||
18 | protected function get_user_roles( $environment ) { |
||
21 | |||
22 | /** |
||
23 | * Check if the condition is fulfilled |
||
24 | * |
||
25 | * @param array $environment |
||
26 | * @return bool |
||
27 | */ |
||
28 | public function is_fulfilled( $environment ) { |
||
37 | } |