MethodScanner
in package
implements
ScannerInterface
Interfaces, Classes, Traits and Enums
Table of Contents
- $body : string
- $class : string
- $docComment : string
- $infos : array<string|int, mixed>
- $isAbstract : bool
- $isFinal : bool
- $isPrivate : bool
- $isProtected : bool
- $isPublic : bool
- $isScanned : bool
- $isStatic : bool
- $lineEnd : int
- $lineStart : int
- $name : string
- $nameInformation : NameInformation
- $scannerClass : ClassScanner
- $tokens : array<string|int, mixed>
- __construct() : mixed
- __toString() : mixed
- export() : mixed
- getAnnotations() : AnnotationScanner|false
- getBody() : string
- getClassScanner() : ClassScanner
- getDocComment() : string
- getLineEnd() : int
- getLineStart() : int
- getName() : string
- getNumberOfParameters() : int
- getParameter() : ParameterScanner
- getParameters() : array<string|int, mixed>
- isAbstract() : bool
- isFinal() : bool
- isPrivate() : bool
- isProtected() : bool
- isPublic() : bool
- isStatic() : bool
- setClass() : MethodScanner
- setName() : self
- Override the given name for a method, this is necessary to support traits.
- setScannerClass() : MethodScanner
- setVisibility() : self
- Visibility must be of T_PUBLIC, T_PRIVATE or T_PROTECTED Needed to support traits
- scan() : mixed
Properties
$body
protected
string
$body
= ''
$class
protected
string
$class
$docComment
protected
string
$docComment
$infos
protected
array<string|int, mixed>
$infos
= []
$isAbstract
protected
bool
$isAbstract
= false
$isFinal
protected
bool
$isFinal
= false
$isPrivate
protected
bool
$isPrivate
= false
$isProtected
protected
bool
$isProtected
= false
$isPublic
protected
bool
$isPublic
= true
$isScanned
protected
bool
$isScanned
= false
$isStatic
protected
bool
$isStatic
= false
$lineEnd
protected
int
$lineEnd
$lineStart
protected
int
$lineStart
$name
protected
string
$name
$nameInformation
protected
NameInformation
$nameInformation
$scannerClass
protected
ClassScanner
$scannerClass
$tokens
protected
array<string|int, mixed>
$tokens
= []
Methods
__construct()
public
__construct(array<string|int, mixed> $methodTokens[, NameInformation $nameInformation = null ]) : mixed
Parameters
- $methodTokens : array<string|int, mixed>
- $nameInformation : NameInformation = null
Return values
mixed —__toString()
public
__toString() : mixed
Return values
mixed —export()
public
static export() : mixed
Return values
mixed —getAnnotations()
public
getAnnotations(AnnotationManager $annotationManager) : AnnotationScanner|false
Parameters
- $annotationManager : AnnotationManager
Return values
AnnotationScanner|false —getBody()
public
getBody() : string
Return values
string —getClassScanner()
public
getClassScanner() : ClassScanner
Return values
ClassScanner —getDocComment()
public
getDocComment() : string
Return values
string —getLineEnd()
public
getLineEnd() : int
Return values
int —getLineStart()
public
getLineStart() : int
Return values
int —getName()
public
getName() : string
Return values
string —getNumberOfParameters()
public
getNumberOfParameters() : int
Return values
int —getParameter()
public
getParameter(int|string $parameterNameOrInfoIndex) : ParameterScanner
Parameters
- $parameterNameOrInfoIndex : int|string
Tags
Return values
ParameterScanner —getParameters()
public
getParameters([bool $returnScanner = false ]) : array<string|int, mixed>
Parameters
- $returnScanner : bool = false
Return values
array<string|int, mixed> —isAbstract()
public
isAbstract() : bool
Return values
bool —isFinal()
public
isFinal() : bool
Return values
bool —isPrivate()
public
isPrivate() : bool
Return values
bool —isProtected()
public
isProtected() : bool
Return values
bool —isPublic()
public
isPublic() : bool
Return values
bool —isStatic()
public
isStatic() : bool
Return values
bool —setClass()
public
setClass(string $class) : MethodScanner
Parameters
- $class : string
Return values
MethodScanner —setName()
Override the given name for a method, this is necessary to support traits.
public
setName(string $name) : self
Parameters
- $name : string
Return values
self —setScannerClass()
public
setScannerClass(ClassScanner $scannerClass) : MethodScanner
Parameters
- $scannerClass : ClassScanner
Return values
MethodScanner —setVisibility()
Visibility must be of T_PUBLIC, T_PRIVATE or T_PROTECTED Needed to support traits
public
setVisibility(int $visibility) : self
Parameters
- $visibility : int
-
T_PUBLIC | T_PRIVATE | T_PROTECTED
Tags
Return values
self —scan()
protected
scan() : mixed