Version 1
[yaffs-website] / vendor / nikic / php-parser / lib / PhpParser / Node / Expr / MethodCall.php
diff --git a/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/MethodCall.php b/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/MethodCall.php
new file mode 100644 (file)
index 0000000..a6cdd07
--- /dev/null
@@ -0,0 +1,35 @@
+<?php
+
+namespace PhpParser\Node\Expr;
+
+use PhpParser\Node\Arg;
+use PhpParser\Node\Expr;
+
+class MethodCall extends Expr
+{
+    /** @var Expr Variable holding object */
+    public $var;
+    /** @var string|Expr Method name */
+    public $name;
+    /** @var Arg[] Arguments */
+    public $args;
+
+    /**
+     * Constructs a function call node.
+     *
+     * @param Expr        $var        Variable holding object
+     * @param string|Expr $name       Method name
+     * @param Arg[]       $args       Arguments
+     * @param array       $attributes Additional attributes
+     */
+    public function __construct(Expr $var, $name, array $args = array(), array $attributes = array()) {
+        parent::__construct($attributes);
+        $this->var = $var;
+        $this->name = $name;
+        $this->args = $args;
+    }
+
+    public function getSubNodeNames() {
+        return array('var', 'name', 'args');
+    }
+}