ReflectionEnum::getCaseReturns a specific case of an Enum Description
public ReflectionEnumUnitCase ReflectionEnum::getCase(string
$name )Returns the reflection object for a specific Enum case by name. If the requested case is not defined, a ReflectionException is thrown. Parameters
Return ValuesAn instance of ReflectionEnumUnitCase or ReflectionEnumBackedCase, as appropriate. Examples
Example #1 ReflectionEnum::getCase example
The above example will output: enum(Suit::Clubs) |