package Default

 Methods

Required due to bug in php

__toString() : string

Returns

string

Get method body

getBody() : string | false

Returns

stringfalse

Get contents of function

getContents(boolean $includeDocBlock = true) : string

Parameters

$includeDocBlock

boolean

Returns

string

Get function DocBlock

getDocBlock() : \Zend\Code\Reflection\DocBlockReflection

Exceptions

\Zend\Code\Reflection\Exception\InvalidArgumentException

Returns

\Zend\Code\Reflection\DocBlockReflection

Get function parameters

getParameters() : array<mixed,\Zend\Code\Reflection\ParameterReflection>

Returns

array<mixed,\Zend\Code\Reflection\ParameterReflection>

Get method prototype

getPrototype($format = \Zend\Code\Reflection\FunctionReflection::PROTOTYPE_AS_ARRAY) : array

Parameters

$format

Returns

array

Get return type tag

getReturn() : \Zend\Code\Reflection\DocBlockReflection

Exceptions

\Zend\Code\Reflection\Exception\InvalidArgumentException

Returns

\Zend\Code\Reflection\DocBlockReflection

Get start line (position) of function

getStartLine(boolean $includeDocComment = false) : integer

Parameters

$includeDocComment

boolean

Returns

integer

toString()

toString() : string

Returns

string

 Constants

 

Constant use in @MethodReflection to display prototype as an array

PROTOTYPE_AS_ARRAY = 'prototype_as_array' 
 

Constant use in @MethodReflection to display prototype as a string

PROTOTYPE_AS_STRING = 'prototype_as_string'