Total Complexity | 2 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
18 | class SymfonySecurityExpressionVoter |
||
19 | { |
||
20 | protected static $variableNames = [ |
||
21 | 'token', |
||
22 | 'user', |
||
23 | 'object', |
||
24 | 'subject', |
||
25 | 'roles', |
||
26 | 'trust_resolver', |
||
27 | 'request', // TODO: this variable is conditionally passed to evaluate |
||
28 | ]; |
||
29 | |||
30 | /** |
||
31 | * @return array |
||
32 | */ |
||
33 | 7 | public static function getVariableNames() |
|
36 | } |
||
37 | |||
38 | /** |
||
39 | * @param array $names |
||
40 | */ |
||
41 | 1 | public static function setVariableNames(array $names) |
|
46 |