Mercurial > hg > isophonics-drupal-site
comparison vendor/nikic/php-parser/lib/PhpParser/Node/Expr/StaticPropertyFetch.php @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children | 5fb285c0d0e3 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4c8ae668cc8c |
---|---|
1 <?php | |
2 | |
3 namespace PhpParser\Node\Expr; | |
4 | |
5 use PhpParser\Node\Expr; | |
6 use PhpParser\Node\Name; | |
7 | |
8 class StaticPropertyFetch extends Expr | |
9 { | |
10 /** @var Name|Expr Class name */ | |
11 public $class; | |
12 /** @var string|Expr Property name */ | |
13 public $name; | |
14 | |
15 /** | |
16 * Constructs a static property fetch node. | |
17 * | |
18 * @param Name|Expr $class Class name | |
19 * @param string|Expr $name Property name | |
20 * @param array $attributes Additional attributes | |
21 */ | |
22 public function __construct($class, $name, array $attributes = array()) { | |
23 parent::__construct($attributes); | |
24 $this->class = $class; | |
25 $this->name = $name; | |
26 } | |
27 | |
28 public function getSubNodeNames() { | |
29 return array('class', 'name'); | |
30 } | |
31 } |