Class ClassVariable
Represents a class member variable/constant element.
- Peg\Lib\Definitions\Element\VariableType
-
Peg\Lib\Definitions\Element\ClassVariable
public
|
#
__construct( string $name, string $type, mixed $description = "" )
Create a global variable element using a declaration specification for its type. |
GetDeclarationCode()
|
public
string
|
$name | |
#
Holds the name of the element |
public
boolean
|
$static | |
#
Flag that indicates if the variable is static. |
public
boolean
|
$mutable | |
#
Flag that indicates if the variable is mutable. |
public
boolean
|
$protected | |
#
Flag that indicates if the variable is protected. |
public
boolean
|
$public | |
#
Flag that indicates if the variable is public. |
public
|
$parent_class | |
#
Reference to the class containing this element. |
public
|
$header | |
#
Reference to the header containing this element. |
public
|
$namespace | |
#
Reference to the namespace containing this element. |
$description,
$indirection_level,
$is_array,
$is_const,
$is_pointer,
$is_reference,
$is_unsigned,
$original_type,
$type
|