|
$type
Type of this item |
|
$label
Label of this item |
|
$params
Parameters in this item |
|
$_label
Label of this item |
|
$_numParams
The number of parameters in this item |
|
$_params
Parameters in this item |
|
$_type
Type of this item |
|
__construct (string $type, string $label, [array $params = array()])
The constructor |
int |
count ()
|
string |
getLabel ()
Returns the label of this item |
mixed |
getParam (int $index)
Returns the parameter at the specified index of this item |
int |
getParamCount ()
Returns the number of parameters in this item |
array |
getParams ()
Returns the parameters of this item |
string |
getType ()
Returns the type of this item |
string |
hash ()
Returns the hash code which represents this item |
boolean |
offsetExists (mixed $offset)
|
mixed |
offsetGet (mixed $offset)
|
mixed |
offsetSet (mixed $offset, mixed $value)
|
void |
offsetUnset (mixed $offset)
|
mixed |
__get (mixed $name)
|
Label of this item
protected string $_label
The number of parameters in this item
protected int $_numParams = 0
Parameters in this item
protected array $_params
Type of this item
protected string $_type
The constructor
string $type
Item type
string $label
Item label
array $params
Parameters of item
public __construct (string $type, string $label, [array $params = array()])
public int count ()
Returns the label of this item
public string getLabel ()
Returns the parameter at the specified index of this item
int $index
Index of the parameter to be retrieved
When the specified index is below 0 or beyond the last index of the parameters of this item
public mixed getParam (int $index)
Returns the number of parameters in this item
public int getParamCount ()
Returns the parameters of this item
public array getParams ()
Returns the type of this item
public string getType ()
Returns the hash code which represents this item
When unable to calculate hash code
public string hash ()
mixed $offset
public boolean offsetExists (mixed $offset)
mixed $offset
public mixed offsetGet (mixed $offset)
mixed $offset
mixed $value
public mixed offsetSet (mixed $offset, mixed $value)
mixed $offset
public void offsetUnset (mixed $offset)
mixed $name
public mixed __get (mixed $name)