mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-12-11 16:49:43 +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
|
|
);
|
|
}
|
|
} |