| Fully Qualified Name: | Laminas\Code\Reflection\MethodReflection |
| Extends: | ReflectionMethod |
| Implements: | ReflectionInterface |
| Name | Description | Defined By |
|---|---|---|
| __toString() | MethodReflection | |
| getAnnotations() | MethodReflection | |
| getBody() | Get method body | MethodReflection |
| getContents() | Get method contents | MethodReflection |
| getDeclaringClass() | Get reflection of declaring class | MethodReflection |
| getDocBlock() | Retrieve method DocBlock reflection | MethodReflection |
| getParameters() | Get all method parameter reflection objects | MethodReflection |
| getPrototype() | Get method prototype | MethodReflection |
| getStartLine() | Get start line (position) of method | MethodReflection |
| toString() | MethodReflection |
Returns: string
| Parameter Name | Type | Description |
|---|---|---|
| $annotationManager | \AnnotationManager |
Returns: \AnnotationScanner|bool
Get method body
Returns: string
Get method contents
| Parameter Name | Type | Description |
|---|---|---|
| $includeDocBlock | bool |
Returns: string
Get reflection of declaring class
Returns: \ClassReflection
Retrieve method DocBlock reflection
Returns: \DocBlockReflection|bool
Get all method parameter reflection objects
Returns: \ParameterReflection[]
Get method prototype
| Parameter Name | Type | Description |
|---|---|---|
| $format | string |
Returns: array|string
Get start line (position) of method
| Parameter Name | Type | Description |
|---|---|---|
| $includeDocComment | bool |
Returns: int
Returns: string