| Total Complexity | 7 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class DoctrineHelper |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * Gets the real class name of a class name that could be a proxy. |
||
| 13 | * |
||
| 14 | * @param object|string $class |
||
| 15 | * |
||
| 16 | * @return string |
||
| 17 | * |
||
| 18 | * credits |
||
| 19 | * https://github.com/api-platform/core/blob/master/src/Util/ClassInfoTrait.php |
||
| 20 | */ |
||
| 21 | public static function getRealClassName($class): string |
||
| 42 | ); |
||
| 43 | } |
||
| 44 | |||
| 45 | public static function getDoctrineType(string $type): string |
||
| 50 |