ReflectionType 类
(PHP 7, PHP 8)
简介
ReflectionType 类报告有关函数的参数/返回类型以及类的属性类型的信息。Reflection 扩展声明了以下子类型:
- ReflectionNamedType(自 PHP 7.1.0 起)
- ReflectionUnionType(自 PHP 8.0.0 起)
- ReflectionIntersectionType(自 PHP 8.1.0 起)
类摘要
/* 方法 */
}更新日志
| 版本 | 说明 |
|---|---|
| 8.0.0 | ReflectionType 已成为抽象类,ReflectionType::isBuiltin() 已移至 ReflectionNamedType::isBuiltin()。 |
目录
- ReflectionType::allowsNull — Checks if null is allowed
- ReflectionType::__toString — To string