a6cdd07c1ac328d47957db085dce740540e225e2
[yaffs-website] / vendor / nikic / php-parser / lib / PhpParser / Node / Expr / MethodCall.php
1 <?php
2
3 namespace PhpParser\Node\Expr;
4
5 use PhpParser\Node\Arg;
6 use PhpParser\Node\Expr;
7
8 class MethodCall extends Expr
9 {
10     /** @var Expr Variable holding object */
11     public $var;
12     /** @var string|Expr Method name */
13     public $name;
14     /** @var Arg[] Arguments */
15     public $args;
16
17     /**
18      * Constructs a function call node.
19      *
20      * @param Expr        $var        Variable holding object
21      * @param string|Expr $name       Method name
22      * @param Arg[]       $args       Arguments
23      * @param array       $attributes Additional attributes
24      */
25     public function __construct(Expr $var, $name, array $args = array(), array $attributes = array()) {
26         parent::__construct($attributes);
27         $this->var = $var;
28         $this->name = $name;
29         $this->args = $args;
30     }
31
32     public function getSubNodeNames() {
33         return array('var', 'name', 'args');
34     }
35 }