Lines 0.00% 0 / 2
Methods 0.00% 0 / 2
Classes 0.00% 0 / 1
Name Lines Methods CRAP
 __construct 0.00% 0 / 1 0.00% 0 / 1 2
 createMqttLink 0.00% 0 / 1 0.00% 0 / 1 2
16final readonly class ReconnectingMqttLinkFactory implements MqttLinkFactory
17{
18    public function __construct(
19        private MqttConnector $connector,
20        private Deadlines $deadlines,
21        private Clock $clock,
22        private LoggerInterface $logger,
23        private MqttLinkListener $mqttLinkListener,
24    ) {}
25
26    public function createMqttLink(MqttConfig $config): MqttLink
27    {
28        return new ReconnectingMqttLink($config, $this->connector, new OutboundMqttQueue($config->outboundBuffer), $this->deadlines, $this->clock, $this->logger, $this->mqttLinkListener);
29    }
30}