| Total Complexity | 2 |
| Total Lines | 17 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | final class MercureUpdatesGenerator implements MercureUpdatesGeneratorInterface |
||
| 16 | { |
||
| 17 | private const NEW_VISIT_TOPIC = 'https://shlink.io/new_visit'; |
||
| 18 | |||
| 19 | private ShortUrlDataTransformer $transformer; |
||
| 20 | |||
| 21 | 1 | public function __construct(array $domainConfig) |
|
| 22 | { |
||
| 23 | 1 | $this->transformer = new ShortUrlDataTransformer($domainConfig); |
|
| 24 | } |
||
| 25 | |||
| 26 | 1 | public function newVisitUpdate(Visit $visit): Update |
|
| 32 | } |
||
| 33 | } |
||
| 34 |