« ReflectionEnum::isBacked
ReflectionEnumUnitCase::__construct »
PHP Manual
反射
ReflectionEnumUnitCase 类
ReflectionEnumUnitCase 类
(PHP 8 >= 8.1.0)
简介
ReflectionEnumUnitCase
类报告了 Enum 单元条目, 不包含对应的标量。
类摘要
class
ReflectionEnumUnitCase
extends
ReflectionClassConstant
implements
Reflector
{
/* 继承的常量 */
const
int
ReflectionClassConstant::IS_PUBLIC
= 1
;
const
int
ReflectionClassConstant::IS_PROTECTED
= 2
;
const
int
ReflectionClassConstant::IS_PRIVATE
= 4
;
/* 继承的属性 */
public
string
$
name
;
public
string
$
class
;
/* 方法 */
public
getEnum
():
ReflectionEnum
public
getValue
():
UnitEnum
/* 继承的方法 */
public
static
ReflectionClassConstant::export
(
mixed
$class
,
string
$name
,
bool
$return
= ?
):
string
public
ReflectionClassConstant::getAttributes
(
?
string
$name
=
null
,
int
$flags
= 0
):
array
public
ReflectionClassConstant::getDeclaringClass
():
ReflectionClass
public
ReflectionClassConstant::getDocComment
():
string
|
false
public
ReflectionClassConstant::getModifiers
():
int
public
ReflectionClassConstant::getName
():
string
public
ReflectionClassConstant::getValue
():
mixed
public
ReflectionClassConstant::isFinal
():
bool
public
ReflectionClassConstant::isPrivate
():
bool
public
ReflectionClassConstant::isProtected
():
bool
public
ReflectionClassConstant::isPublic
():
bool
public
ReflectionClassConstant::__toString
():
string
}
参见
枚举
ReflectionEnumBackedCase
目录
ReflectionEnumUnitCase::__construct
— Instantiates a ReflectionEnumUnitCase object
ReflectionEnumUnitCase::getEnum
— 获取该枚举条目的反射
ReflectionEnumUnitCase::getValue
— 获取反射对象描述的枚举条目对象