| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 75 | private function checkAndReturnSelf(): RouteConditionHandlerInterface |
||
| 76 | { |
||
| 77 | if ($this instanceof RouteConditionHandlerInterface) { |
||
| 78 | return $this; |
||
| 79 | } |
||
| 80 | |||
| 81 | throw new RuntimeException(sprintf( |
||
| 82 | 'Trait (%s) must be consumed by an instance of (%s)', |
||
| 83 | __TRAIT__, |
||
| 84 | RouteConditionHandlerInterface::class |
||
| 85 | )); |
||
| 88 |