| Total Complexity | 6 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class ShortUrlResolver implements ShortUrlResolverInterface |
||
| 14 | { |
||
| 15 | private EntityManagerInterface $em; |
||
| 16 | |||
| 17 | 8 | public function __construct(EntityManagerInterface $em) |
|
| 18 | { |
||
| 19 | 8 | $this->em = $em; |
|
| 20 | 8 | } |
|
| 21 | |||
| 22 | /** |
||
| 23 | * @throws ShortUrlNotFoundException |
||
| 24 | */ |
||
| 25 | 3 | public function resolveShortUrl(ShortUrlIdentifier $identifier): ShortUrl |
|
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @throws ShortUrlNotFoundException |
||
| 39 | */ |
||
| 40 | 6 | public function resolveEnabledShortUrl(ShortUrlIdentifier $identifier): ShortUrl |
|
| 50 | } |
||
| 51 | } |
||
| 52 |