ReflectionAttribute クラス
ReflectionAttribute
&reftitle.intro;
ReflectionAttribute クラスは、
アトリビュート
に関する情報を提供します。
&reftitle.classsynopsis;
ReflectionAttribute
implements
Reflector
&Constants;
public
const
int
ReflectionAttribute::IS_INSTANCEOF
&Properties;
public
string
name
&Methods;
&reftitle.properties;
name
アトリビュート名。
&reftitle.constants;
ReflectionAttribute のフラグ
ReflectionAttribute::IS_INSTANCEOF
int
instanceof のチェックを使い、
アトリビュートを取得します。
これらの定数の値は、
PHP のバージョンによっては変更される可能性があります。
値そのものに依存せず、定数を使うことを推奨します。
&reftitle.changelog;
&Version;
&Description;
8.4.0
すべてのクラス定数が型付けされました。
8.4.0
ReflectionAttribute::$name プロパティが追加されました。
&reference.reflection.entities.reflectionattribute;