Zend Framework  3.0
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
MethodScanner Class Reference

Public Member Functions

 __construct (array $methodTokens, NameInformation $nameInformation=null)
 
 setClass ($class)
 
 setScannerClass (ClassScanner $scannerClass)
 
 getClassScanner ()
 
 getName ()
 
 getLineStart ()
 
 getLineEnd ()
 
 getDocComment ()
 
 getAnnotations (AnnotationManager $annotationManager)
 
 isFinal ()
 
 isAbstract ()
 
 isPublic ()
 
 isProtected ()
 
 isPrivate ()
 
 isStatic ()
 
 setName ($name)
 Override the given name for a method, this is necessary to support traits.
 
 setVisibility ($visibility)
 Visibility must be of T_PUBLIC, T_PRIVATE or T_PROTECTED Needed to support traits.
 
 getNumberOfParameters ()
 
 getParameters ($returnScanner=false)
 
 getParameter ($parameterNameOrInfoIndex)
 
 getBody ()
 
 __toString ()
 

Static Public Member Functions

static export ()
 

Protected Member Functions

 scan ()
 

Protected Attributes

 $isScanned = false
 
 $docComment = null
 
 $scannerClass = null
 
 $class = null
 
 $name = null
 
 $lineStart = null
 
 $lineEnd = null
 
 $isFinal = false
 
 $isAbstract = false
 
 $isPublic = true
 
 $isProtected = false
 
 $isPrivate = false
 
 $isStatic = false
 
 $body = ''
 
 $tokens = []
 
 $nameInformation = null
 
 $infos = []
 

Constructor & Destructor Documentation

__construct ( array  $methodTokens,
NameInformation  $nameInformation = null 
)
Parameters
array$methodTokens
NameInformation$nameInformation

Member Function Documentation

__toString ( )
static export ( )
static
getAnnotations ( AnnotationManager  $annotationManager)
Parameters
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 (   $parameterNameOrInfoIndex)
Parameters
int | string$parameterNameOrInfoIndex
Returns
ParameterScanner
Exceptions
Exception\InvalidArgumentException
getParameters (   $returnScanner = false)
Parameters
bool$returnScanner
Returns
array
isAbstract ( )
Returns
bool
isFinal ( )
Returns
bool
isPrivate ( )
Returns
bool
isProtected ( )
Returns
bool
isPublic ( )
Returns
bool
isStatic ( )
Returns
bool
scan ( )
protected

Variables & Setup

START FINITE STATE MACHINE FOR SCANNING TOKENS

setClass (   $class)
Parameters
string$class
Returns
MethodScanner
setName (   $name)

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

Parameters
$name
Returns
self
setScannerClass ( ClassScanner  $scannerClass)
Parameters
ClassScanner$scannerClass
Returns
MethodScanner
setVisibility (   $visibility)

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

Parameters
$visibilityT_PUBLIC | T_PRIVATE | T_PROTECTED
Returns
self
Exceptions
\Zend\Code\Exception

Member Data Documentation

$body = ''
protected
$class = null
protected
$docComment = null
protected
$infos = []
protected
$isAbstract = false
protected
$isFinal = false
protected
$isPrivate = false
protected
$isProtected = false
protected
$isPublic = true
protected
$isScanned = false
protected
$isStatic = false
protected
$lineEnd = null
protected
$lineStart = null
protected
$name = null
protected
$nameInformation = null
protected
$scannerClass = null
protected
$tokens = []
protected