Version 1
[yaffs-website] / vendor / nikic / php-parser / lib / PhpParser / Node / Stmt / Const_.php
diff --git a/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Const_.php b/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Const_.php
new file mode 100644 (file)
index 0000000..8b2eecd
--- /dev/null
@@ -0,0 +1,26 @@
+<?php
+
+namespace PhpParser\Node\Stmt;
+
+use PhpParser\Node;
+
+class Const_ extends Node\Stmt
+{
+    /** @var Node\Const_[] Constant declarations */
+    public $consts;
+
+    /**
+     * Constructs a const list node.
+     *
+     * @param Node\Const_[] $consts     Constant declarations
+     * @param array         $attributes Additional attributes
+     */
+    public function __construct(array $consts, array $attributes = array()) {
+        parent::__construct($attributes);
+        $this->consts = $consts;
+    }
+
+    public function getSubNodeNames() {
+        return array('consts');
+    }
+}