ReflectionClassConstant::__construct()
(PHP 7 >= 7.1.0)
Constructs a ReflectionClassConstant
说明
public ReflectionClassConstant::__construct(mixed $class,string $name)
Constructs a newReflectionClassConstantobject.
参数
- $class
Either astringcontaining the name of the class to reflect, or anobject.
- $name
The name of the class constant.
返回值
Returns constructedReflectionClassConstantinstance.
错误/异常
Throws anExceptionin case the given class constant does not exist.
参见
- Constructors