| Total Complexity | 2 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | final class GlobalViewParameters |
||
| 27 | { |
||
| 28 | /** |
||
| 29 | * @var string[] |
||
| 30 | */ |
||
| 31 | private readonly array $locales; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @var string[] |
||
| 35 | */ |
||
| 36 | private array $supportUrl; |
||
| 37 | |||
| 38 | public function __construct(private readonly TranslatorInterface $translator, array $locales, array $supportUrl) |
||
| 39 | { |
||
| 40 | Assert::keysAre($supportUrl, $locales); |
||
| 41 | $this->locales = $locales; |
||
| 42 | $this->supportUrl = $supportUrl; |
||
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @return string |
||
| 47 | */ |
||
| 48 | public function getSupportUrl() |
||
| 51 | } |
||
| 52 | } |
||
| 53 |