| Total Complexity | 2 | 
| Total Lines | 22 | 
| Duplicated Lines | 0 % | 
| Coverage | 100% | 
| Changes | 2 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 13 | abstract class Utils | ||
| 14 | { | ||
| 15 | /** | ||
| 16 | * Get the GraphQL type name for an output type from the PHP class. | ||
| 17 | * | ||
| 18 | * @param class-string $className | ||
| 19 | */ | ||
| 20 | 119 | public static function getTypeName(string $className): string | |
| 21 |     { | ||
| 22 | 119 |         $parts = explode('\\', $className); | |
| 23 | |||
| 24 | 119 | return end($parts); | |
| 25 | } | ||
| 26 | |||
| 27 | /** | ||
| 28 | * Get the GraphQL type name for a Filter type from the PHP class. | ||
| 29 | * | ||
| 30 | * @param class-string $className | ||
| 31 | */ | ||
| 32 | 59 | public static function getOperatorTypeName(string $className, EnumType|ScalarType $type): string | |
| 35 | } | ||
| 36 | } | ||
| 37 |