package Default

 Methods

__construct()

__construct(array $methodTokens, \Zend\Code\NameInformation $nameInformation = null

Parameters

$methodTokens

array

$nameInformation

\Zend\Code\NameInformation

__toString()

__toString() 

export()

export() 
Static

getAnnotations()

getAnnotations(\Zend\Code\Annotation\AnnotationManager $annotationManager) : \Zend\Code\Scanner\AnnotationScanner

Parameters

$annotationManager

\Zend\Code\Annotation\AnnotationManager

Returns

\Zend\Code\Scanner\AnnotationScanner

getBody()

getBody() : string

Returns

string

getClassScanner()

getClassScanner() : \Zend\Code\Scanner\MethodScanner

Returns

\Zend\Code\Scanner\MethodScanner

getDocComment()

getDocComment() : string

Returns

string

getLineEnd()

getLineEnd() : integer

Returns

integer

getLineStart()

getLineStart() : integer

Returns

integer

getName()

getName() : string

Returns

string

getNumberOfParameters()

getNumberOfParameters() : integer

Returns

integer

getParameter()

getParameter(integer|string $parameterNameOrInfoIndex) : \Zend\Code\Scanner\ParameterScanner

Parameters

$parameterNameOrInfoIndex

integerstring

Exceptions

\Zend\Code\Exception\InvalidArgumentException

Returns

\Zend\Code\Scanner\ParameterScanner

getParameters()

getParameters(boolean $returnScanner = false) : array

Parameters

$returnScanner

boolean

Returns

array

isAbstract()

isAbstract() : boolean

Returns

boolean

isFinal()

isFinal() : boolean

Returns

boolean

isPrivate()

isPrivate() : boolean

Returns

boolean

isProtected()

isProtected() : boolean

Returns

boolean

isPublic()

isPublic() : boolean

Returns

boolean

isStatic()

isStatic() : boolean

Returns

boolean

setClass()

setClass(string $class) : \Zend\Code\Scanner\MethodScanner

Parameters

$class

string

Returns

\Zend\Code\Scanner\MethodScanner

Override the given name for a method, this is necessary to support traits.

setName($name) : \Zend\Code\Scanner\MethodScanner
fluent This method is part of a fluent interface and will return the same instance

Parameters

$name

Returns

\Zend\Code\Scanner\MethodScanner

setScannerClass()

setScannerClass(\Zend\Code\Scanner\ClassScanner $scannerClass) : \Zend\Code\Scanner\MethodScanner

Parameters

$scannerClass

\Zend\Code\Scanner\ClassScanner

Returns

\Zend\Code\Scanner\MethodScanner

Visibility must be of T_PUBLIC, T_PRIVATE or T_PROTECTED Needed to support traits

setVisibility($visibility) : \Zend\Code\Scanner\MethodScanner
fluent This method is part of a fluent interface and will return the same instance

Parameters

$visibility

T_PUBLIC | T_PRIVATE | T_PROTECTED

Exceptions

\Zend\Code\Exception

Returns

\Zend\Code\Scanner\MethodScanner

scan()

scan() 

 Properties

 

$body

$body : string

Default

''
 

$class

$class : string

Default

null
 

$docComment

$docComment : string

Default

null
 

$infos

$infos : array

Default

array()
 

$isAbstract

$isAbstract : boolean

Default

false
 

$isFinal

$isFinal : boolean

Default

false
 

$isPrivate

$isPrivate : boolean

Default

false
 

$isProtected

$isProtected : boolean

Default

false
 

$isPublic

$isPublic : boolean

Default

true
 

$isScanned

$isScanned : boolean

Default

false
 

$isStatic

$isStatic : boolean

Default

false
 

$lineEnd

$lineEnd : integer

Default

null
 

$lineStart

$lineStart : integer

Default

null
 

$name

$name : string

Default

null
 

$nameInformation

$nameInformation : \Zend\Code\NameInformation

Default

null
 

$scannerClass

$scannerClass : \Zend\Code\Scanner\ClassScanner

Default

null
 

$tokens

$tokens : array

Default

array()