| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | public function getByTargetDestination(TargetDefinitionInterface $target, DestinationInterface $destination = null) |
||
| 23 | { |
||
| 24 | if (!array_key_exists($target->getRoute(), $this->pages)) { |
||
| 25 | throw PageException::notFound($target); |
||
| 26 | } |
||
| 27 | |||
| 28 | return $this->pages[$target->getRoute()]; |
||
| 29 | } |
||
| 30 | } |
||
| 31 |