Mercurial > hg > cmmr2012-drupal-site
comparison vendor/nikic/php-parser/lib/PhpParser/Node/Expr/StaticCall.php @ 0:c75dbcec494b
Initial commit from drush-created site
author | Chris Cannam |
---|---|
date | Thu, 05 Jul 2018 14:24:15 +0000 |
parents | |
children | a9cd425dd02b |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:c75dbcec494b |
---|---|
1 <?php declare(strict_types=1); | |
2 | |
3 namespace PhpParser\Node\Expr; | |
4 | |
5 use PhpParser\Node; | |
6 use PhpParser\Node\Expr; | |
7 use PhpParser\Node\Identifier; | |
8 | |
9 class StaticCall extends Expr | |
10 { | |
11 /** @var Node\Name|Expr Class name */ | |
12 public $class; | |
13 /** @var string|Identifier|Expr Method name */ | |
14 public $name; | |
15 /** @var Node\Arg[] Arguments */ | |
16 public $args; | |
17 | |
18 /** | |
19 * Constructs a static method call node. | |
20 * | |
21 * @param Node\Name|Expr $class Class name | |
22 * @param string|Identifier|Expr $name Method name | |
23 * @param Node\Arg[] $args Arguments | |
24 * @param array $attributes Additional attributes | |
25 */ | |
26 public function __construct($class, $name, array $args = [], array $attributes = []) { | |
27 parent::__construct($attributes); | |
28 $this->class = $class; | |
29 $this->name = \is_string($name) ? new Identifier($name) : $name; | |
30 $this->args = $args; | |
31 } | |
32 | |
33 public function getSubNodeNames() : array { | |
34 return ['class', 'name', 'args']; | |
35 } | |
36 | |
37 public function getType() : string { | |
38 return 'Expr_StaticCall'; | |
39 } | |
40 } |