Member predicate Expr::MethodAccess::getEnclosingCallable

Gets the immediately enclosing callable that contains this method access.

Callable getEnclosingCallable()