| Conditions | 3 | 
| Paths | 3 | 
| Total Lines | 10 | 
| Code Lines | 5 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 0 | 
| CRAP Score | 12 | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 26 | protected function supports(string $attribute, $subject): bool | ||
| 27 |     { | ||
| 28 |         if (self::READ_ROUTABLE !== $attribute) { | ||
| 29 | return false; | ||
| 30 | } | ||
| 31 |         if (!$subject instanceof RoutableInterface) { | ||
| 32 |             throw new \InvalidArgumentException(sprintf('$subject must be of type `%s`', RoutableInterface::class)); | ||
| 33 | } | ||
| 34 | |||
| 35 | return true; | ||
| 36 | } | ||
| 38 |