get_called_class()
function get_called_class(): mixed
Returns the late-static-binding class name in eval context.
Parameters: none.
Returns: mixed
Availability
- Compiled (AOT): not available — compiled programs cannot call this builtin (
eval-only-reflection). eval()(magician interpreter): supported — 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.