|
ReflectionClassConstant::isEnumCaseChecks if class constant is an Enum case Descriptionpublic bool ReflectionClassConstant::isEnumCase()
Checks if the class constant is an Enum case. ParametersThis function has no parameters. Return Values
ExamplesExample #1 ReflectionClassConstant::isEnumCase example Distinguish between Enum cases and regular class constants.
The above example will output: BORING_CONSTANT is a regular class constant ENUM_VALUE is a regular class constant DRAFT is an enum case PUBLISHED is an enum case ARCHIVED is an enum case See Also
|