class ReflectionClassConstantParser implements Parser (View source)

Methods

bool
canParse(T $object)

Check if this parser can handle the given object

mixed
parse(T $object)

Parse a ReflectionClassConstant (adapted or array) into a PHPClassConstant model

Details

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 a ReflectionClassConstant (adapted or array) into a PHPClassConstant model

Accepts both AdaptedReflectionClassConstant objects and arrays for backward compatibility.

Parameters

T $object

The object to parse

Return Value

mixed

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