| Total Complexity | 5 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class ShortUrlResolver implements ShortUrlResolverInterface |
||
| 13 | { |
||
| 14 | private EntityManagerInterface $em; |
||
| 15 | |||
| 16 | 7 | public function __construct(EntityManagerInterface $em) |
|
| 17 | { |
||
| 18 | 7 | $this->em = $em; |
|
| 19 | } |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @throws ShortUrlNotFoundException |
||
| 23 | */ |
||
| 24 | 7 | public function shortCodeToShortUrl(string $shortCode, ?string $domain = null): ShortUrl |
|
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @throws ShortUrlNotFoundException |
||
| 38 | */ |
||
| 39 | 5 | public function shortCodeToEnabledShortUrl(string $shortCode, ?string $domain = null): ShortUrl |
|
| 47 | } |
||
| 48 | } |
||
| 49 |