| Total Complexity | 5 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | final class STDIOSubscriber implements EventSubscriberInterface |
||
| 15 | { |
||
| 16 | public function __construct(private SplFileObject $STDOUT, private SplFileObject $STDERR) |
||
| 18 | } |
||
| 19 | |||
| 20 | public static function getSubscribedEvents() |
||
| 26 | ]; |
||
| 27 | } |
||
| 28 | |||
| 29 | public function onDNSQueryFailed(ObservableEventAbstract $event): void |
||
| 30 | { |
||
| 31 | $this->STDERR->fwrite(json_encode($event, JSON_PRETTY_PRINT) . PHP_EOL); |
||
| 32 | } |
||
| 33 | |||
| 34 | public function onDNSQueried(ObservableEventAbstract $event): void |
||
| 37 | } |
||
| 38 | |||
| 39 | public function onDNSQueryProfiled(ObservableEventAbstract $event): void |
||
| 44 |