ReflectionEnumParser
class ReflectionEnumParser implements Parser (View source)
Methods
__construct(ReflectionMethodParser|null $methodParser = null, ReflectionClassConstantParser|null $constantParser = null, ReflectionImplementedInterfaceParser|null $interfaceParser = null)
No description
bool
canParse(T $object)
Check if this parser can handle the given object
mixed
parse(T $object)
Parse an AdaptedReflectionClass (representing an enum) into a PHPEnum model
Details
__construct(ReflectionMethodParser|null $methodParser = null, ReflectionClassConstantParser|null $constantParser = null, ReflectionImplementedInterfaceParser|null $interfaceParser = null)
No description
bool
canParse(T $object)
Check if this parser can handle the given object
mixed
parse(T $object)
Parse an AdaptedReflectionClass (representing an enum) into a PHPEnum model