ReflectionAttribute 类
(PHP 8)
简介
ReflectionAttribute 类提供有关 属性 的信息。
类摘要
目录
- ReflectionAttribute::__construct — 禁止直接实例化的私有构造函数
- ReflectionAttribute::getArguments — 获取传递给属性的参数
- ReflectionAttribute::getName — 获取属性名称
- ReflectionAttribute::getTarget — 返回属性的目标位掩码
- ReflectionAttribute::isRepeated — 返回该名称的属性是否可以重复出现在一个代码元素上
- ReflectionAttribute::newInstance — 实例化由 ReflectionAttribute 类和参数表示的属性类
add a note
User Contributed Notes
There are no user contributed notes for this page.
备份地址:http://www.lvesu.com/blog/php/class.reflectionattribute.php