1 | <?php |
||
10 | class CatalogUrlPathProvider implements CatalogUrlPathProviderInterface |
||
11 | { |
||
12 | /** |
||
13 | * @var CategoryResolverInterface |
||
14 | */ |
||
15 | private $categoryResolver; |
||
16 | |||
17 | /** |
||
18 | * @var ProductResolverInterface |
||
19 | */ |
||
20 | private $productResolver; |
||
21 | |||
22 | /** |
||
23 | * @param CategoryResolverInterface $categoryResolver |
||
24 | * @param ProductResolverInterface $productResolver |
||
25 | */ |
||
26 | public function __construct(CategoryResolverInterface $categoryResolver, ProductResolverInterface $productResolver) |
||
31 | |||
32 | /** |
||
33 | * @param int $categoryId |
||
34 | * @param int $storeId |
||
35 | * |
||
36 | * @return UrlPath |
||
37 | */ |
||
38 | public function getCategoryUrlPath(int $categoryId, int $storeId) : UrlPath |
||
50 | |||
51 | /** |
||
52 | * @param int $productId |
||
53 | * @param int $storeId |
||
54 | * |
||
55 | * @return UrlPath |
||
56 | */ |
||
57 | public function getProductUrlPath(int $productId, int $storeId) : UrlPath |
||
63 | } |
||
64 |