ReflectionParameter::getAttributes

(PHP 8)

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

説明

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

この引数上で宣言されている全てのアトリビュートを、 ReflectionAttribute の配列として返します。

警告

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

パラメータ

name

flags

戻り値

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

参考

関連キーワード:  アトリビュート, 取得, getAttributes, ReflectionParameter, 配列, flags, ReflectionAttribute, getClass, リスト, eflectionFunctionAbstract