GlobalConstantIterator
in package
implements
Iterator
Tags
Interfaces, Classes and Traits
- Iterator
Table of Contents
- $constant : Const_
- $index : int
- __construct() : mixed
- Initializes the class with source data.
- current() : self
- getDocComment() : Doc|null
- Gets the doc comment of the node.
- getEndLine() : int
- Gets line the node ended in.
- getFqsen() : Fqsen
- Returns the fqsen of the current constant.
- getLine() : int
- Gets line the node started in.
- getName() : string
- Returns the name of the current constant.
- getValue() : Expr
- key() : int|null
- next() : void
- rewind() : void
- valid() : bool
Properties
$constant
private
Const_
$constant
$index
private
int
$index
= 0
index of the current constant to use
Methods
__construct()
Initializes the class with source data.
public
__construct(Const_ $constant) : mixed
Parameters
- $constant : Const_
Return values
mixed —current()
public
current() : self
Tags
Return values
self —getDocComment()
Gets the doc comment of the node.
public
getDocComment() : Doc|null
The doc comment has to be the last comment associated with the node.
Return values
Doc|null —getEndLine()
Gets line the node ended in.
public
getEndLine() : int
Return values
int —Line
getFqsen()
Returns the fqsen of the current constant.
public
getFqsen() : Fqsen
Return values
Fqsen —getLine()
Gets line the node started in.
public
getLine() : int
Return values
int —Line
getName()
Returns the name of the current constant.
public
getName() : string
Return values
string —getValue()
public
getValue() : Expr
Return values
Expr —key()
public
key() : int|null
Tags
Return values
int|null —next()
public
next() : void
Tags
Return values
void —rewind()
public
rewind() : void
Tags
Return values
void —valid()
public
valid() : bool