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

Parameters

ReflectionMethodParser|null $methodParser
ReflectionClassConstantParser|null $constantParser
ReflectionImplementedInterfaceParser|null $interfaceParser

bool canParse(T $object)

Check if this parser can handle the given object

Parameters

T $object

The object to check

Return Value

bool

True if this parser can parse the object

mixed parse(T $object)

Parse an AdaptedReflectionClass (representing an enum) into a PHPEnum model

Parameters

T $object

The object to parse

Return Value

mixed

The parsed domain model (PHPClass, PHPMethod, PHPFunction, etc.)