| 1 | <?php |
||
| 4 | trait OrmClassUtil |
||
| 5 | { |
||
| 6 | |||
| 7 | /** |
||
| 8 | * Retrieve the properties from class |
||
| 9 | * |
||
| 10 | * @param string $class |
||
| 11 | * The name of class to get properties of |
||
| 12 | * |
||
| 13 | * @return \ReflectionProperty[] Array of Reflection properties |
||
| 14 | */ |
||
| 15 | 21 | private static function getClassProperties(string $class): array |
|
| 21 | |||
| 22 | /** |
||
| 23 | * Checks whether a type is an internal class defined by core or any extension |
||
| 24 | * |
||
| 25 | * @param string $type |
||
| 26 | * The type (class name) to check |
||
| 27 | * |
||
| 28 | * @return bool |
||
| 29 | */ |
||
| 30 | 14 | private static function isInternalClass(string $type): bool |
|
| 40 | |||
| 41 | /** |
||
| 42 | * Build a full qualified class name including namespace |
||
| 43 | * |
||
| 44 | * @param string $ns |
||
| 45 | * The namespace of class |
||
| 46 | * @param string $class |
||
| 47 | * The name of class |
||
| 48 | * |
||
| 49 | * @return string The full qualified class name |
||
| 50 | */ |
||
| 51 | 26 | private static function fullQualifiedName(string $ns, string $class): string |
|
| 58 | } |