Zend Framework  3.0
Public Member Functions | Public Attributes | List of all members
FunctionReflection Class Reference

Public Member Functions

 getDocBlock ()
 Get function DocBlock.
 
 getStartLine ($includeDocComment=false)
 Get start line (position) of function.
 
 getContents ($includeDocBlock=true)
 Get contents of function.
 
 getPrototype ($format=FunctionReflection::PROTOTYPE_AS_ARRAY)
 Get method prototype.
 
 getParameters ()
 Get function parameters.
 
 getReturn ()
 Get return type tag.
 
 getBody ()
 Get method body.
 
 toString ()
 
 __toString ()
 Required due to bug in php.
 

Public Attributes

const PROTOTYPE_AS_ARRAY = 'prototype_as_array'
 Constant use in to display prototype as an array.
 
const PROTOTYPE_AS_STRING = 'prototype_as_string'
 Constant use in to display prototype as a string.
 

Member Function Documentation

__toString ( )

Required due to bug in php.

Returns
string
getBody ( )

Get method body.

Returns
string|false
getContents (   $includeDocBlock = true)

Get contents of function.

Parameters
bool$includeDocBlock
Returns
string
getDocBlock ( )

Get function DocBlock.

Exceptions
Exception\InvalidArgumentException
Returns
DocBlockReflection
getParameters ( )

Get function parameters.

Returns
ParameterReflection[]
getPrototype (   $format = FunctionReflection::PROTOTYPE_AS_ARRAY)

Get method prototype.

Returns
array
getReturn ( )

Get return type tag.

Exceptions
Exception\InvalidArgumentException
Returns
DocBlockReflection
getStartLine (   $includeDocComment = false)

Get start line (position) of function.

Parameters
bool$includeDocComment
Returns
int
toString ( )
Returns
string

Implements ReflectionInterface.

Member Data Documentation

const PROTOTYPE_AS_ARRAY = 'prototype_as_array'

Constant use in to display prototype as an array.

const PROTOTYPE_AS_STRING = 'prototype_as_string'

Constant use in to display prototype as a string.