| Total Complexity | 6 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | final class UdpHandler implements HandlerInterface |
||
| 11 | { |
||
| 12 | private ?Socket $socket = null; |
||
| 13 | |||
| 14 | public function __construct( |
||
| 20 | } |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Sends encode with {@see \json_encode()} function $variable to a UDP socket. |
||
| 25 | */ |
||
| 26 | public function handle(mixed $variable, int $depth, bool $highlight = false): void |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @throws RuntimeException When a connection cannot be opened. |
||
| 36 | */ |
||
| 37 | private function getSocket(): Socket |
||
| 48 |