PHP 8.4.0 RC4 available for testing

ReflectionFunctionAbstract::getClosureScopeClass

(PHP 5 >= 5.4.0, PHP 7, PHP 8)

ReflectionFunctionAbstract::getClosureScopeClassReturns the scope class associated with the closure

说明

public ReflectionFunctionAbstract::getClosureScopeClass(): ?ReflectionClass

Get the class enclosing the closure declaration.

参数

此函数没有参数。

返回值

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

添加备注

用户贡献的备注

此页面尚无用户贡献的备注。
To Top