Dutch PHP Conference 2025 - Call For Papers

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.

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top