| Total Complexity | 3 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | final class Consumers |
||
| 13 | { |
||
| 14 | private $consumers; |
||
| 15 | |||
| 16 | 30 | public function __construct(MapInterface $consumers = null) |
|
| 17 | { |
||
| 18 | 30 | $consumers = $consumers ?? new Map('string', 'callable'); |
|
| 19 | |||
| 20 | 30 | assertMap('string', 'callable', $consumers, 1); |
|
| 21 | |||
| 22 | 26 | $this->consumers = $consumers; |
|
| 23 | 26 | } |
|
| 24 | |||
| 25 | 4 | public function contains(string $queue): bool |
|
| 28 | } |
||
| 29 | |||
| 30 | 14 | public function get(string $queue): callable |
|
| 33 | } |
||
| 34 | } |
||
| 35 |