3 namespace PhpParser\Node\Stmt;
7 class DeclareDeclare extends Node\Stmt
11 /** @var Node\Expr Value */
15 * Constructs a declare key=>value pair node.
17 * @param string $key Key
18 * @param Node\Expr $value Value
19 * @param array $attributes Additional attributes
21 public function __construct($key, Node\Expr $value, array $attributes = array()) {
22 parent::__construct($attributes);
24 $this->value = $value;
27 public function getSubNodeNames() {
28 return array('key', 'value');