| Total Complexity | 7 | 
| Total Lines | 50 | 
| Duplicated Lines | 0 % | 
| Coverage | 80% | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 12 | final class CommandLoader implements CommandLoaderInterface | ||
| 13 | { | ||
| 14 | private ContainerInterface $container; | ||
| 15 | |||
| 16 | /** | ||
| 17 | * @var array<string, string> | ||
| 18 | */ | ||
| 19 | private array $commandMap; | ||
| 20 | |||
| 21 | /** | ||
| 22 | * @param array<string, string> $commandMap An array with command names as keys and service ids as values | ||
| 23 | */ | ||
| 24 | 31 | public function __construct(ContainerInterface $container, array $commandMap) | |
| 25 |     { | ||
| 26 | 31 | $this->container = $container; | |
| 27 | 31 | $this->commandMap = $commandMap; | |
| 28 | 31 | } | |
| 29 | |||
| 30 | /** | ||
| 31 |      * {@inheritdoc} | ||
| 32 | */ | ||
| 33 | 8 | public function get(string $name) | |
| 46 | } | ||
| 47 | |||
| 48 | /** | ||
| 49 |      * {@inheritdoc} | ||
| 50 | */ | ||
| 51 | 8 | public function has(string $name) | |
| 54 | } | ||
| 55 | |||
| 56 | /** | ||
| 57 |      * {@inheritdoc} | ||
| 58 | */ | ||
| 59 | public function getNames() | ||
| 62 | } | ||
| 63 | } | ||
| 64 |