| 1 | <?php  | 
            ||
| 13 | final class ViewMatcherRegistry  | 
            ||
| 14 | { | 
            ||
| 15 | /** @var \eZ\Publish\Core\MVC\Symfony\Matcher\MatcherInterface[] */  | 
            ||
| 16 | private $matchers;  | 
            ||
| 17 | |||
| 18 | /**  | 
            ||
| 19 | * @param \eZ\Publish\Core\MVC\Symfony\Matcher\MatcherInterface[] $matchers  | 
            ||
| 20 | */  | 
            ||
| 21 | public function __construct(array $matchers = [])  | 
            ||
| 25 | |||
| 26 | public function setMatcher(string $matcherIdentifier, MatcherInterface $matcher): void  | 
            ||
| 30 | |||
| 31 | /**  | 
            ||
| 32 | * @param string $matcherIdentifier  | 
            ||
| 33 | *  | 
            ||
| 34 | * @return \eZ\Publish\Core\MVC\Symfony\Matcher\ContentBased\MatcherInterface  | 
            ||
| 35 | *  | 
            ||
| 36 | * @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException  | 
            ||
| 37 | */  | 
            ||
| 38 | public function getMatcher(string $matcherIdentifier): MatcherInterface  | 
            ||
| 46 | }  | 
            ||
| 47 |