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