| Total Complexity | 10 |
| Total Lines | 49 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | final class PrefixedPathIdentifiedSiteResolver implements SiteResolverInterface |
||
| 13 | { |
||
| 14 | private $siteRepository; |
||
| 15 | private $defaultIdentifier; |
||
| 16 | private $identifiers; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @param string[] $identifiers |
||
| 20 | */ |
||
| 21 | public function __construct(SiteRepositoryInterface $siteRepository, array $identifiers, ?string $defaultIdentifier = null) |
||
| 22 | { |
||
| 23 | $this->siteRepository = $siteRepository; |
||
| 24 | $this->defaultIdentifier = $defaultIdentifier; |
||
| 25 | $this->identifiers = $identifiers; |
||
| 26 | } |
||
| 27 | |||
| 28 | public function resolve(RequestContext $requestContext): SiteInterface |
||
| 61 | } |
||
| 62 | } |
||
| 63 |