ReflectionProperty クラス ReflectionProperty
&reftitle.intro; ReflectionProperty クラスは クラスのプロパティについての情報を報告します。
&reftitle.classsynopsis; ReflectionProperty implements Reflector &Constants; public const int ReflectionProperty::IS_STATIC public const int ReflectionProperty::IS_READONLY public const int ReflectionProperty::IS_PUBLIC public const int ReflectionProperty::IS_PROTECTED public const int ReflectionProperty::IS_PRIVATE public const int ReflectionProperty::IS_ABSTRACT public const int ReflectionProperty::IS_PROTECTED_SET public const int ReflectionProperty::IS_PRIVATE_SET public const int ReflectionProperty::IS_VIRTUAL public const int ReflectionProperty::IS_FINAL &Properties; public string name public string class &Methods;
&reftitle.properties; name プロパティ名。読み込み専用で、書き込もうとすると ReflectionException をスローします。 class プロパティが定義されているクラス名。読み込み専用で、書き込もうとすると ReflectionException をスローします。
&reftitle.constants;
ReflectionProperty の修飾子 ReflectionProperty::IS_STATIC int static プロパティを示します。 PHP 7.4.0 より前のバージョンでは、この値は 1 でした。 ReflectionProperty::IS_READONLY int readonly プロパティを示します。 PHP 8.1.0 以降で利用可能です。 ReflectionProperty::IS_PUBLIC int public プロパティを示します。 PHP 7.4.0 より前のバージョンでは、この値は 256 でした。 ReflectionProperty::IS_PROTECTED int protected プロパティを示します。 PHP 7.4.0 より前のバージョンでは、この値は 512 でした。 ReflectionProperty::IS_PRIVATE int private プロパティを示します。 PHP 7.4.0 より前のバージョンでは、この値は 1024 でした。 ReflectionProperty::IS_ABSTRACT int abstract プロパティを示します。 PHP 8.4.0 以降で利用可能です。 ReflectionProperty::IS_PROTECTED_SET int PHP 8.4.0 以降で利用可能です。 ReflectionProperty::IS_PRIVATE_SET int PHP 8.4.0 以降で利用可能です。 ReflectionProperty::IS_VIRTUAL int PHP 8.4.0 以降で利用可能です。 ReflectionProperty::IS_FINAL int final プロパティを示します。 PHP 8.4.0 以降で利用可能です。 これらの定数の値は、PHP のバージョンが異なると変更される可能性があります。 これらの値を直接用いず、常に定数を使うことを推奨します。
&reftitle.changelog; &Version; &Description; 8.4.0 クラス定数が型付けされました。 8.4.0 ReflectionProperty::IS_VIRTUALReflectionProperty::IS_PRIVATE_SETReflectionProperty::IS_PROTECTED_SETReflectionProperty::IS_ABSTRACTReflectionProperty::IS_FINAL が追加されました。 8.0.0 ReflectionProperty::export は、削除されました。
&reference.reflection.entities.reflectionproperty;