2011-09-23 21:00:59 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @property string $name Name
|
|
|
|
* @property PHPParser_Node_Expr $value Value
|
|
|
|
*/
|
|
|
|
class PHPParser_Node_Const extends PHPParser_NodeAbstract
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Constructs a const node for use in class const and const statements.
|
|
|
|
*
|
|
|
|
* @param string $name Name
|
|
|
|
* @param PHPParser_Node_Expr $value Value
|
2012-04-29 23:32:09 +02:00
|
|
|
* @param array $attributes Additional attributes
|
2011-09-23 21:00:59 +02:00
|
|
|
*/
|
2012-04-29 23:32:09 +02:00
|
|
|
public function __construct($name, PHPParser_Node_Expr $value, array $attributes = array()) {
|
2011-09-23 21:00:59 +02:00
|
|
|
parent::__construct(
|
|
|
|
array(
|
|
|
|
'name' => $name,
|
|
|
|
'value' => $value,
|
|
|
|
),
|
2012-04-29 23:32:09 +02:00
|
|
|
$attributes
|
2011-09-23 21:00:59 +02:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|