? ReflectionReference::getId
ReflectionAttribute::__construct ?
Bejson.com
PHP Manual
反射
ReflectionAttribute 類
ReflectionAttribute 類
(PHP 8)
簡(jiǎn)介
ReflectionAttribute
類提供有關(guān)
屬性
的信息。
類摘要
final
class
ReflectionAttribute
{
/* 方法 */
private
__construct
()
public
getArguments
():
array
public
getName
():
string
public
getTarget
():
int
public
isRepeated
():
bool
public
newInstance
():
object
}
目錄
ReflectionAttribute::__construct
— 禁止直接實(shí)例化的私有構(gòu)造函數(shù)
ReflectionAttribute::getArguments
— 獲取傳遞給屬性的參數(shù)
ReflectionAttribute::getName
— 獲取屬性名稱
ReflectionAttribute::getTarget
— 返回屬性的目標(biāo)位掩碼
ReflectionAttribute::isRepeated
— 返回該名稱的屬性是否可以重復(fù)出現(xiàn)在一個(gè)代碼元素上
ReflectionAttribute::newInstance
— 實(shí)例化由 ReflectionAttribute 類和參數(shù)表示的屬性類