| 1 | <?php |
||
| 10 | abstract class Utils |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Get the GraphQL type name from the PHP class |
||
| 14 | * |
||
| 15 | * @param string $className |
||
| 16 | * |
||
| 17 | * @return string |
||
| 18 | */ |
||
| 19 | 37 | public static function getTypeName(string $className): string |
|
| 25 | |||
| 26 | /** |
||
| 27 | * Get the GraphQL type name for an ID type from the PHP class |
||
| 28 | * |
||
| 29 | * @param string $className |
||
| 30 | * |
||
| 31 | * @return string |
||
| 32 | */ |
||
| 33 | 13 | public static function getIDTypeName(string $className): string |
|
| 37 | |||
| 38 | /** |
||
| 39 | * Get the GraphQL type name for an Input type from the PHP class |
||
| 40 | * |
||
| 41 | * @param string $className |
||
| 42 | * |
||
| 43 | * @return string |
||
| 44 | */ |
||
| 45 | 9 | public static function getInputTypeName(string $className): string |
|
| 49 | |||
| 50 | 5 | public static function getPartialInputTypeName($className) |
|
| 54 | } |
||
| 55 |