Conditions | 4 |
Paths | 4 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
18 | public function get(string $context = ExtensionMenuInterface::CONTEXT_ADMIN): iterable |
||
19 | { |
||
20 | if (ExtensionMenuInterface::CONTEXT_ADMIN === $context) { |
||
21 | return $this->getAdmin(); |
||
22 | } |
||
23 | if (ExtensionMenuInterface::CONTEXT_USER === $context) { |
||
24 | return $this->getUser(); |
||
25 | } |
||
26 | if (ExtensionMenuInterface::CONTEXT_ACCOUNT === $context) { |
||
27 | return $this->getAccount(); |
||
28 | } |
||
29 | |||
30 | return []; |
||
31 | } |
||
48 |