mirror of
https://github.com/danog/PHP-Parser.git
synced 2024-11-27 04:14:44 +01:00
29 lines
674 B
PHP
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
|
|
);
|
|
}
|
|
} |