ReflectionClass::getAttributes

(PHP 8)

ReflectionClass::getAttributesアトリビュートを取得する

説明

public ReflectionClass::getAttributes(string $name = null, int $flags = 0): array

このクラスで宣言されている全てのアトリビュートを ReflectionAttribute の配列として返します。

警告

この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています。

パラメータ

name

flags

返り値

アトリビュートの配列を、 ReflectionAttribute オブジェクトの配列として返します。

参考

add a note add a note

User Contributed Notes

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