Class FunctionReflection

Summary

Fully Qualified Name: Laminas\Code\Reflection\FunctionReflection
Extends: ReflectionFunction
Implements: ReflectionInterface

Description

Methods

Name Description Defined By
__toString() Required due to bug in php FunctionReflection
getBody() Get method body FunctionReflection
getContents() Get contents of function FunctionReflection
getDocBlock() Get function DocBlock FunctionReflection
getParameters() Get function parameters FunctionReflection
getPrototype() Get method prototype FunctionReflection
getReturn() Get return type tag FunctionReflection
getStartLine() Get start line (position) of function FunctionReflection
toString() FunctionReflection

Method Details

__toString()

Required due to bug in php

Returns: string

getBody()

Get method body

Returns: string|bool

getContents()

Get contents of function

Parameter Name Type Description
$includeDocBlock bool

Returns: string

getDocBlock()

Get function DocBlock

Returns: \DocBlockReflection

getParameters()

Get function parameters

Returns: \ParameterReflection[]

getPrototype()

Get method prototype

Parameter Name Type Description
$format string

Returns: array|string

getReturn()

Get return type tag

Returns: \DocBlockReflection

getStartLine()

Get start line (position) of function

Parameter Name Type Description
$includeDocComment bool

Returns: int

toString()

Returns: string

Top