ReflectionFunctionAbstract::getClosureScopeClass

Returns the scope class associated with the closure

Description

public ReflectionClassnull ReflectionFunctionAbstract::getClosureScopeClass()

Get the class enclosing the closure declaration.

Parameters

This function has no parameters.

Return Values

Returns the class, or null if the function is not a closure or if there was no enclosing class.