| Conditions | 3 | 
| Paths | 2 | 
| Total Lines | 7 | 
| Code Lines | 3 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 0 | 
| CRAP Score | 12 | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 35 | public function getIriFromResource($resource, int $referenceType = UrlGeneratorInterface::ABS_PATH, ?Operation $operation = null, array $context = []): ?string | ||
| 36 |     { | ||
| 37 |         if ($resource instanceof Route && ($path = $resource->getPath())) { | ||
| 38 | return '/_/routes/' . $path; | ||
| 39 | } | ||
| 40 | |||
| 41 | return $this->decorated->getIriFromResource($resource, $referenceType, $operation, $context); | ||
| 42 | } | ||
| 44 |