Total Complexity | 3 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | final class MapByStaticList implements CommandToHandlerMapping |
||
22 | { |
||
23 | /** @var array<string, array<string>> */ |
||
24 | private array $mapping; |
||
25 | |||
26 | /** @param array<string, array<string>> $mapping */ |
||
27 | 2 | public function __construct(array $mapping) |
|
28 | { |
||
29 | 2 | $this->mapping = $mapping; |
|
30 | 2 | } |
|
31 | |||
32 | 2 | public function mapCommandToHandler(string $commandFQCN): MethodToCall |
|
41 | ); |
||
42 | } |
||
44 |