PHP 8.3.4 Released!

ReflectionFunctionAbstract::getClosureScopeClass

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

ReflectionFunctionAbstract::getClosureScopeClassクロージャに関連づけられたスコープクラスを返す

説明

public ReflectionFunctionAbstract::getClosureScopeClass(): ?ReflectionClass

クロージャの宣言を囲んだクラスを取得します。

パラメータ

この関数にはパラメータはありません。

戻り値

成功した場合にクラスを返します。 関数がクロージャでなかったり、クラスで囲まれていない場合は null を返します。

add a note

User Contributed Notes

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