← All docs

get_called_class()

Returns the late-static-binding class name in eval context.

get_called_class()

function get_called_class(): mixed

Returns the late-static-binding class name in eval context.

Parameters: none.

Returns: mixed

Availability

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.