get_class_methods()
function get_class_methods(mixed $object_or_class): mixed
Returns method names visible on an object or class.
Parameters:
$object_or_class(mixed)
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_class_methods.rs).
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how get_class_methods is implemented in the compiler, see the internals page.