get_parent_class()
function get_parent_class(mixed $object_or_class = null): string
Returns the name of the parent class of an object or class.
Parameters:
$object_or_class(mixed), defaultnull, optional
Returns: string
Availability
- Compiled (AOT): supported by the Elephc code generator.
eval()(magician interpreter): supported — declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/symbols/get_parent_class.rs).
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how get_parent_class is implemented in the compiler, see the internals page.