ReflectionEnumUnitCase
class ReflectionEnumUnitCase extends ReflectionClassConstant (View source)
Constants
|
IS_PUBLIC
Since: 8.0
|
Indicates that the constant is public. |
|
IS_PROTECTED
Since: 8.0
|
Indicates that the constant is protected. |
|
IS_PRIVATE
Since: 8.0
|
Indicates that the constant is private. |
|
IS_FINAL
Since: 8.1
|
|
Properties
| string | $name | from ReflectionClassConstant | |
| class-string | $class | from ReflectionClassConstant | |
|
bool
Since: 8.1
|
$isFinal | from ReflectionClassConstant |
Methods
Instantiates a ReflectionEnumUnitCase object
No description
Gets the enum case object described by this reflection object
Returns the string representation of the ReflectionClassConstant object.
No description
No description
Details
__construct(class-string|object $class, string $constant)
Instantiates a ReflectionEnumUnitCase object
static string|null
export(string|object $class, string $name, bool $return = false)
No description
ReflectionClass
getDeclaringClass()
Gets declaring class
string|false
getDocComment()
Gets doc comments
int
getModifiers()
Gets the class constant modifiers
string
getName()
Get name of the constant
mixed
getValue()
Gets the enum case object described by this reflection object
Returns the enum case object described by this reflection object.
bool
isPrivate()
Checks if class constant is private
bool
isProtected()
Checks if class constant is protected
bool
isPublic()
Checks if class constant is public
string
__toString()
Returns the string representation of the ReflectionClassConstant object.
array
getAttributes(string|null $name = null, int $flags = 0)
No description
bool
isEnumCase()
Checks if class constant is an Enum case
Checks if the class constant is an Enum case.
bool
isFinal()
No description
bool
hasType()
No description
ReflectionType|null
getType()
No description
bool
isDeprecated()
No description
ReflectionEnum
getEnum()
No description