Total Complexity | 3 |
Total Lines | 17 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
7 | final class SymfonyUrlGenerator implements UrlGeneratorInterface |
||
8 | { |
||
9 | private UrlGenerator $generator; |
||
10 | |||
11 | 14 | public function __construct(UrlGenerator $generator) |
|
12 | { |
||
13 | 14 | $this->generator = $generator; |
|
14 | } |
||
15 | |||
16 | 1 | public function generatePath(string $name, array $options = []): string |
|
17 | { |
||
18 | 1 | return $this->generator->generate($name, $options, UrlGenerator::ABSOLUTE_PATH); |
|
19 | } |
||
20 | |||
21 | 1 | public function generateUrl(string $name, array $options = []): string |
|
24 | } |
||
25 | } |
||
26 |