| Total Complexity | 5 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | final class BroadcastManager implements BroadcastManagerInterface, SingletonInterface |
||
| 12 | { |
||
| 13 | private FactoryInterface $factory; |
||
| 14 | private BroadcastConfig $config; |
||
| 15 | /** @var BroadcastInterface[] */ |
||
| 16 | private array $connections = []; |
||
| 17 | |||
| 18 | public function __construct( |
||
| 19 | FactoryInterface $factory, |
||
| 20 | BroadcastConfig $config |
||
| 21 | ) { |
||
| 22 | $this->factory = $factory; |
||
| 23 | $this->config = $config; |
||
| 24 | } |
||
| 25 | |||
| 26 | public function driver(?string $name = null): BroadcastInterface |
||
| 38 | } |
||
| 39 | |||
| 40 | private function resolve(string $name): BroadcastInterface |
||
| 47 |