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 Flags ReflectionAttribute::IS_INSTANCEOF int 使用 instanceof 检索属性。 这些常量的值可能会在不同 PHP 版本间发生更改。建议始终使用常量而不直接依赖值。
&reftitle.changelog; &Version; &Description; 8.4.0 所有类常量现已类型化。 8.4.0 添加了 ReflectionAttribute::$name
&reference.reflection.entities.reflectionattribute;