Mercurial > hg > isophonics-drupal-site
comparison vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ConstFetch.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 ConstFetch extends Expr | |
9 { | |
10 /** @var Name Constant name */ | |
11 public $name; | |
12 | |
13 /** | |
14 * Constructs a const fetch node. | |
15 * | |
16 * @param Name $name Constant name | |
17 * @param array $attributes Additional attributes | |
18 */ | |
19 public function __construct(Name $name, array $attributes = array()) { | |
20 parent::__construct($attributes); | |
21 $this->name = $name; | |
22 } | |
23 | |
24 public function getSubNodeNames() { | |
25 return array('name'); | |
26 } | |
27 } |