« ReflectionReference::getId
ReflectionAttribute::__construct »
PHP Manual
反射
ReflectionAttribute ?/li>
ReflectionAttribute ?/h1>
(PHP 8)
简?/h2>
ReflectionAttribute
类提供有?
属?/a> 的信息?
类摘?/h2>
final
class
ReflectionAttribute
{
/* 方法 */
private
__construct
()
public
getArguments
():
array
public
getName
():
string
public
getTarget
():
int
public
isRepeated
():
bool
public
newInstance
():
object
}
目录
ReflectionAttribute::__construct
?禁止直接实例化的私有构造函?/li>
ReflectionAttribute::getArguments
?获取传递给属性的参数
ReflectionAttribute::getName
?获取属性名?/li>
ReflectionAttribute::getTarget
?返回属性的目标位掩?/li>
ReflectionAttribute::isRepeated
?返回该名称的属性是否可以重复出现在一个代码元素上
ReflectionAttribute::newInstance
?实例化由 ReflectionAttribute 类和参数表示的性类
7i24.Com