| Total Complexity | 5 | 
| Total Lines | 26 | 
| Duplicated Lines | 0 % | 
| Coverage | 100% | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 11 | final class Consumers  | 
            ||
| 12 | { | 
            ||
| 13 | private $consumers;  | 
            ||
| 14 | |||
| 15 | 15 | public function __construct(MapInterface $consumers = null)  | 
            |
| 16 |     { | 
            ||
| 17 | 15 |         $consumers = $consumers ?? new Map('string', 'callable'); | 
            |
| 18 | |||
| 19 | if (  | 
            ||
| 20 | 15 | (string) $consumers->keyType() !== 'string' ||  | 
            |
| 21 | 15 | (string) $consumers->valueType() !== 'callable'  | 
            |
| 22 |         ) { | 
            ||
| 23 | 2 |             throw new \TypeError('Argument 1 must be of type MapInterface<string, callable>'); | 
            |
| 24 | }  | 
            ||
| 25 | |||
| 26 | 13 | $this->consumers = $consumers;  | 
            |
| 27 | 13 | }  | 
            |
| 28 | |||
| 29 | 2 | public function contains(string $queue): bool  | 
            |
| 32 | }  | 
            ||
| 33 | |||
| 34 | 7 | public function get(string $queue): callable  | 
            |
| 37 | }  | 
            ||
| 38 | }  | 
            ||
| 39 |