| Total Complexity | 6 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | class Matcher implements MatcherInterface |
||
| 19 | { |
||
| 20 | /** @var UrlMatchVoterInterface */ |
||
| 21 | private $voter; |
||
| 22 | /** @var Request */ |
||
| 23 | private $request; |
||
| 24 | |||
| 25 | public function __construct(RequestStack $requestStack, UrlMatchVoterInterface $voter) |
||
| 26 | { |
||
| 27 | $this->request = $requestStack->getMainRequest(); |
||
| 28 | $this->voter = $voter; |
||
| 29 | } |
||
| 30 | |||
| 31 | public function isCurrent($item): bool |
||
| 45 | } |
||
| 46 | } |
||
| 47 |