Class MethodScanner

Summary

Fully Qualified Name: Zend\Code\Scanner\MethodScanner
Implements: ScannerInterface

Description

Methods

Name Description Defined By
__construct() MethodScanner
__toString() MethodScanner
export() MethodScanner
getAnnotations() MethodScanner
getBody() MethodScanner
getClassScanner() MethodScanner
getDocComment() MethodScanner
getLineEnd() MethodScanner
getLineStart() MethodScanner
getName() MethodScanner
getNumberOfParameters() MethodScanner
getParameter() MethodScanner
getParameters() MethodScanner
isAbstract() MethodScanner
isFinal() MethodScanner
isPrivate() MethodScanner
isProtected() MethodScanner
isPublic() MethodScanner
isStatic() MethodScanner
setClass() MethodScanner
setName() Override the given name for a method, this is necessary to support traits. MethodScanner
setScannerClass() MethodScanner
setVisibility() Visibility must be of T_PUBLIC, T_PRIVATE or T_PROTECTED Needed to support traits MethodScanner

Method Details

__construct()

Parameter Name Type Description
$methodTokens array
$nameInformation \NameInformation

Returns:

__toString()

Returns: void

export()

Returns: void

getAnnotations()

Parameter Name Type Description
$annotationManager \AnnotationManager

Returns: \AnnotationScanner

getBody()

Returns: string

getClassScanner()

Returns: \MethodScanner

getDocComment()

Returns: string

getLineEnd()

Returns: int

getLineStart()

Returns: int

getName()

Returns: string

getNumberOfParameters()

Returns: int

getParameter()

Parameter Name Type Description
$parameterNameOrInfoIndex int|string

Returns: \ParameterScanner

getParameters()

Parameter Name Type Description
$returnScanner bool

Returns: array

isAbstract()

Returns: bool

isFinal()

Returns: bool

isPrivate()

Returns: bool

isProtected()

Returns: bool

isPublic()

Returns: bool

isStatic()

Returns: bool

setClass()

Parameter Name Type Description
$class string

Returns: \MethodScanner

setName()

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

Parameter Name Type Description
$name
$name

Returns: self

setScannerClass()

Parameter Name Type Description
$scannerClass \ClassScanner

Returns: \MethodScanner

setVisibility()

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

Parameter Name Type Description
T_PUBLIC $visibility |
$visibility

Returns: self

Top