get_called_class()
function get_called_class(): string
Returns the late-static-binding class name.
Parameters: none.
Returns: string
Availability
- Compiled (AOT): supported by the Elephc code generator.
eval()(magician interpreter): supported through a declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/symbols/get_called_class.rs).
No examples yet. Check examples/ and showcases/ for usage patterns.
Internals
For how get_called_class is implemented in the compiler, see the internals page.