| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | public function match(DestinationInterface $destination) |
||
| 30 | { |
||
| 31 | $target = $this->sorter->getMatchingTarget($destination); |
||
| 32 | |||
| 33 | try { |
||
| 34 | return $this->pageRepository->getByTargetDestination($target, $destination); |
||
| 35 | } catch (PageException $exception) { |
||
| 36 | throw new MatchingException($exception->getMessage(), $exception->getCode(), $exception); |
||
| 37 | } |
||
| 38 | } |
||
| 39 | } |
||
| 40 |