Conditions | 5 |
Paths | 5 |
Total Lines | 13 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
32 | public static function getAentsListByDependencyKey(string $key): array |
||
33 | { |
||
34 | switch ($key) { |
||
35 | case CommonDependencies::ORCHESTRATOR_KEY: |
||
36 | return self::$orchestratorAents; |
||
37 | case CommonDependencies::REVERSE_PROXY_KEY: |
||
38 | return self::$reverseProxyAents; |
||
39 | case CommonDependencies::CI_KEY: |
||
40 | return self::$CIAents; |
||
41 | case CommonDependencies::IMAGE_BUILDER_KEY: |
||
42 | return self::$imageBuilderAents; |
||
43 | default: |
||
44 | throw CommonAentsException::noAentsAvailable($key); |
||
45 | } |
||
48 |