Mercurial > hg > cmmr2012-drupal-site
comparison vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst.php @ 0:c75dbcec494b
Initial commit from drush-created site
author | Chris Cannam |
---|---|
date | Thu, 05 Jul 2018 14:24:15 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:c75dbcec494b |
---|---|
1 <?php declare(strict_types=1); | |
2 | |
3 namespace PhpParser\Node\Scalar; | |
4 | |
5 use PhpParser\Node\Scalar; | |
6 | |
7 abstract class MagicConst extends Scalar | |
8 { | |
9 /** | |
10 * Constructs a magic constant node. | |
11 * | |
12 * @param array $attributes Additional attributes | |
13 */ | |
14 public function __construct(array $attributes = []) { | |
15 parent::__construct($attributes); | |
16 } | |
17 | |
18 public function getSubNodeNames() : array { | |
19 return []; | |
20 } | |
21 | |
22 /** | |
23 * Get name of magic constant. | |
24 * | |
25 * @return string Name of magic constant | |
26 */ | |
27 abstract public function getName() : string; | |
28 } |