中文文档
English
Spanish
French
Japanese
Brazilian
German
Turkish
Russian
ReflectionReference::__construct »
« ReflectionIntersectionType::getTypes
PHP 手册
函数参考
变量与类型相关扩展
反射
ReflectionReference 类
(PHP 7 >= 7.4.0, PHP 8)
简介
ReflectionReference
类提供有关引用的信息。
类摘要
final
class
ReflectionReference
{
private
__construct
()
public
static
fromArrayElement
(
array
$array
,
int
|
string
$key
):
?
ReflectionReference
public
getId
():
string
}
目录
ReflectionReference::__construct
— 私有构造函数以禁用直接实例化
ReflectionReference::fromArrayElement
— 从数组元素创建一个 ReflectionReference
ReflectionReference::getId
— 获取引用的唯一 ID