class ReflectionMethodParser implements Parser (View source)

Methods

__construct(ReflectionParameterParser|null $parameterParser = null, ReflectionTypeParser|null $typeParser = null)

No description

bool
canParse(T $object)

Check if this parser can handle the given object

mixed
parse(T $object)

Parse an AdaptedReflectionMethod into a PHPMethod model

Details

__construct(ReflectionParameterParser|null $parameterParser = null, ReflectionTypeParser|null $typeParser = null)

No description

Parameters

ReflectionParameterParser|null $parameterParser
ReflectionTypeParser|null $typeParser

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 AdaptedReflectionMethod into a PHPMethod model

Parameters

T $object

The object to parse

Return Value

mixed

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