| Total Complexity | 4 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | class UrlProvider implements UrlProviderInterface |
||
| 18 | { |
||
| 19 | /** @var RouterInterface */ |
||
| 20 | private $router; |
||
| 21 | |||
| 22 | public function __construct(RouterInterface $router) |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param ItemInterface $item |
||
| 29 | * |
||
| 30 | * @return string |
||
| 31 | * |
||
| 32 | * @throws ItemIsNotSupportedException |
||
| 33 | */ |
||
| 34 | public function getUrl(ItemInterface $item): string |
||
| 41 | } |
||
| 42 | |||
| 43 | public function supports(ItemInterface $item): bool |
||
| 48 |