class ReflectionInterfaceParser implements Parser (View source)

Methods

__construct(ReflectionMethodParser|null $methodParser = null, ReflectionClassConstantParser|null $constantParser = 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 interface) into a PHPInterface model

Details

__construct(ReflectionMethodParser|null $methodParser = null, ReflectionClassConstantParser|null $constantParser = null)

No description

Parameters

ReflectionMethodParser|null $methodParser
ReflectionClassConstantParser|null $constantParser

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 interface) into a PHPInterface model

Parameters

T $object

The object to parse

Return Value

mixed

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