Conditions | 4 |
Paths | 2 |
Total Lines | 7 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
39 | public function hasPermission(string $component, string $instance, string $level): bool |
||
40 | { |
||
41 | if (empty($component) || empty($instance) || empty($level)) { |
||
42 | throw new InvalidArgumentException($this->translator->trans('Empty argument at') . ':' . __FILE__ . '::' . __LINE__); |
||
43 | } |
||
44 | |||
45 | return $this->permissionApi->hasPermission($component, $instance, constant($level)); |
||
46 | } |
||
48 |