Version 1
[yaffs-website] / vendor / nikic / php-parser / lib / PhpParser / Node / Expr / PostDec.php
diff --git a/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/PostDec.php b/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/PostDec.php
new file mode 100644 (file)
index 0000000..06ce547
--- /dev/null
@@ -0,0 +1,26 @@
+<?php
+
+namespace PhpParser\Node\Expr;
+
+use PhpParser\Node\Expr;
+
+class PostDec extends Expr
+{
+    /** @var Expr Variable */
+    public $var;
+
+    /**
+     * Constructs a post 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');
+    }
+}