2011-05-27 18:20:44 +02:00
|
|
|
<?php
|
|
|
|
|
2011-05-29 12:20:47 +02:00
|
|
|
/**
|
2011-08-19 17:44:42 +02:00
|
|
|
* @property PHPParser_Node_Name|PHPParser_Node_Expr $class Class name
|
|
|
|
* @property string $name Constant name
|
2011-05-29 12:20:47 +02:00
|
|
|
*/
|
2011-06-05 18:40:04 +02:00
|
|
|
class PHPParser_Node_Expr_ClassConstFetch extends PHPParser_Node_Expr
|
2011-05-27 18:20:44 +02:00
|
|
|
{
|
2011-08-11 10:25:51 +02:00
|
|
|
/**
|
|
|
|
* Constructs a class const fetch node.
|
|
|
|
*
|
2011-08-19 17:44:42 +02:00
|
|
|
* @param PHPParser_Node_Name|PHPParser_Node_Expr $class Class name
|
|
|
|
* @param string $name Constant name
|
2012-04-29 23:32:09 +02:00
|
|
|
* @param array $attributes Additional attributes
|
2011-08-11 10:25:51 +02:00
|
|
|
*/
|
2012-04-29 23:32:09 +02:00
|
|
|
public function __construct($class, $name, array $attributes = array()) {
|
2011-08-11 10:25:51 +02:00
|
|
|
parent::__construct(
|
|
|
|
array(
|
|
|
|
'class' => $class,
|
|
|
|
'name' => $name
|
|
|
|
),
|
2012-04-29 23:32:09 +02:00
|
|
|
$attributes
|
2011-08-11 10:25:51 +02:00
|
|
|
);
|
|
|
|
}
|
2011-05-27 18:20:44 +02:00
|
|
|
}
|