Mercurial > hg > isophonics-drupal-site
annotate vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/TraitUseAdaptation/Alias.php @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children | 5fb285c0d0e3 |
rev | line source |
---|---|
Chris@0 | 1 <?php |
Chris@0 | 2 |
Chris@0 | 3 namespace PhpParser\Node\Stmt\TraitUseAdaptation; |
Chris@0 | 4 |
Chris@0 | 5 use PhpParser\Node; |
Chris@0 | 6 |
Chris@0 | 7 class Alias extends Node\Stmt\TraitUseAdaptation |
Chris@0 | 8 { |
Chris@0 | 9 /** @var null|int New modifier */ |
Chris@0 | 10 public $newModifier; |
Chris@0 | 11 /** @var null|string New name */ |
Chris@0 | 12 public $newName; |
Chris@0 | 13 |
Chris@0 | 14 /** |
Chris@0 | 15 * Constructs a trait use precedence adaptation node. |
Chris@0 | 16 * |
Chris@0 | 17 * @param null|Node\Name $trait Trait name |
Chris@0 | 18 * @param string $method Method name |
Chris@0 | 19 * @param null|int $newModifier New modifier |
Chris@0 | 20 * @param null|string $newName New name |
Chris@0 | 21 * @param array $attributes Additional attributes |
Chris@0 | 22 */ |
Chris@0 | 23 public function __construct($trait, $method, $newModifier, $newName, array $attributes = array()) { |
Chris@0 | 24 parent::__construct($attributes); |
Chris@0 | 25 $this->trait = $trait; |
Chris@0 | 26 $this->method = $method; |
Chris@0 | 27 $this->newModifier = $newModifier; |
Chris@0 | 28 $this->newName = $newName; |
Chris@0 | 29 } |
Chris@0 | 30 |
Chris@0 | 31 public function getSubNodeNames() { |
Chris@0 | 32 return array('trait', 'method', 'newModifier', 'newName'); |
Chris@0 | 33 } |
Chris@0 | 34 } |