1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-11-30 04:19:30 +01:00
PHP-Parser/lib/PhpParser/Node/Const_.php
2014-04-02 09:44:45 +02:00

29 lines
674 B
PHP

<?php
namespace PhpParser\Node;
use PhpParser\NodeAbstract;
/**
* @property string $name Name
* @property Expr $value Value
*/
class Const_ extends NodeAbstract
{
/**
* Constructs a const node for use in class const and const statements.
*
* @param string $name Name
* @param Expr $value Value
* @param array $attributes Additional attributes
*/
public function __construct($name, Expr $value, array $attributes = array()) {
parent::__construct(
array(
'name' => $name,
'value' => $value,
),
$attributes
);
}
}