Documentation

MethodReflectionExtension
in package
implements MethodsClassReflectionExtension

Interfaces, Classes and Traits

MethodsClassReflectionExtension

Table of Contents

SUPPORTED_CLASSES  = [phpDocumentorGraphVizNode::class => 'node', phpDocumentorGraphVizGraph::class => 'graph', phpDocumentorGraphVizEdge::class => 'edge']
getMethod()  : MethodReflection
hasMethod()  : bool
getAttributeFromMethodName()  : string
getAttributeInputType()  : Type
getAttributesXmlDoc()  : SimpleXMLElement
getMethodsFromSpec()  : array<string|int, string>

Constants

SUPPORTED_CLASSES

private mixed SUPPORTED_CLASSES = [phpDocumentorGraphVizNode::class => 'node', phpDocumentorGraphVizGraph::class => 'graph', phpDocumentorGraphVizEdge::class => 'edge']

Methods

getMethod()

public getMethod(ClassReflection $classReflection, string $methodName) : MethodReflection
Parameters
$classReflection : ClassReflection
$methodName : string
Return values
MethodReflection

hasMethod()

public hasMethod(ClassReflection $classReflection, string $methodName) : bool
Parameters
$classReflection : ClassReflection
$methodName : string
Return values
bool

getAttributeFromMethodName()

private getAttributeFromMethodName(string $methodName) : string
Parameters
$methodName : string
Return values
string

getAttributeInputType()

private getAttributeInputType(string $ref) : Type
Parameters
$ref : string
Return values
Type

getMethodsFromSpec()

private getMethodsFromSpec(string $className) : array<string|int, string>
Parameters
$className : string
Return values
array<string|int, string>

Search results