Total Complexity | 5 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | class AccessUrlHelper |
||
16 | { |
||
17 | public function __construct( |
||
18 | private readonly AccessUrlRepository $accessUrlRepository, |
||
19 | private readonly ParameterBagInterface $parameterBag, |
||
20 | private readonly RouterInterface $router, |
||
21 | ) {} |
||
22 | |||
23 | public function isMultipleEnabled(): bool |
||
24 | { |
||
25 | return 1 === (int) $this->parameterBag->get('multiple_access_url'); |
||
26 | } |
||
27 | |||
28 | public function getCurrent(): AccessUrl |
||
47 | } |
||
48 | } |
||
49 |