1 | <?php |
||
15 | final class BreakDownUriManager implements BreakDownUriManagerInterface |
||
16 | { |
||
17 | use OptionsTrait; |
||
18 | |||
19 | public const OPT_BREAKDOWN_QUERY_PARAM = 'query_param'; |
||
20 | public const OPT_REMOVE_SORT = 'remove_sort'; |
||
21 | |||
22 | /** |
||
23 | * @var PagerUriManagerInterface |
||
24 | */ |
||
25 | private $pagerUriManager; |
||
26 | /** |
||
27 | * @var SortUriManagerInterface |
||
28 | */ |
||
29 | private $sortUriManager; |
||
30 | |||
31 | /** |
||
32 | * BreakDownUriManager constructor. |
||
33 | * @param array $options |
||
34 | * @param PagerUriManagerInterface|null $pagerUriManager |
||
35 | * @throws \Symfony\Component\OptionsResolver\Exception\AccessException |
||
36 | * @throws \Symfony\Component\OptionsResolver\Exception\InvalidOptionsException |
||
37 | * @throws \Symfony\Component\OptionsResolver\Exception\MissingOptionsException |
||
38 | * @throws \Symfony\Component\OptionsResolver\Exception\NoSuchOptionException |
||
39 | * @throws \Symfony\Component\OptionsResolver\Exception\OptionDefinitionException |
||
40 | * @throws \Symfony\Component\OptionsResolver\Exception\UndefinedOptionsException |
||
41 | */ |
||
42 | public function __construct(array $options = [], PagerUriManagerInterface $pagerUriManager = null, SortUriManagerInterface $sortUriManager = null) |
||
54 | |||
55 | /** |
||
56 | * @inheritDoc |
||
57 | */ |
||
58 | public function getAppliedGroups(UriInterface $uri): array |
||
70 | |||
71 | /** |
||
72 | * @inheritDoc |
||
73 | */ |
||
74 | public function buildGroupUri(UriInterface $uri, array $groups): UriInterface |
||
94 | } |
||
95 |