MethodReflectionExtension
in package
implements
MethodsClassReflectionExtension
FinalYes
Table of Contents
Interfaces
- MethodsClassReflectionExtension
Constants
- SUPPORTED_CLASSES = [\phpDocumentor\GraphViz\Node::class => 'node', \phpDocumentor\GraphViz\Graph::class => 'graph', \phpDocumentor\GraphViz\Edge::class => 'edge']
Methods
- getMethod() : MethodReflection
- hasMethod() : bool
- getAttributeFromMethodName() : string
- getAttributeInputType() : Type
- getAttributesXmlDoc() : SimpleXMLElement
- getMethodsFromSpec() : array<string|int, string>
Constants
SUPPORTED_CLASSES
private
mixed
SUPPORTED_CLASSES
= [\phpDocumentor\GraphViz\Node::class => 'node', \phpDocumentor\GraphViz\Graph::class => 'graph', \phpDocumentor\GraphViz\Edge::class => 'edge']
Methods
getMethod()
public
getMethod(ClassReflection $classReflection, string $methodName) : MethodReflection
Parameters
- $classReflection : ClassReflection
- $methodName : string
Return values
MethodReflectionhasMethod()
public
hasMethod(ClassReflection $classReflection, string $methodName) : bool
Parameters
- $classReflection : ClassReflection
- $methodName : string
Return values
boolgetAttributeFromMethodName()
private
getAttributeFromMethodName(string $methodName) : string
Parameters
- $methodName : string
Return values
stringgetAttributeInputType()
private
getAttributeInputType(string $ref) : Type
Parameters
- $ref : string
Return values
TypegetAttributesXmlDoc()
private
getAttributesXmlDoc() : SimpleXMLElement
Return values
SimpleXMLElementgetMethodsFromSpec()
private
getMethodsFromSpec(string $className) : array<string|int, string>
Parameters
- $className : string