Mercurial > hg > isophonics-drupal-site
annotate vendor/nikic/php-parser/lib/PhpParser/Node/Name/Relative.php @ 19:fa3358dc1485 tip
Add ndrum files
author | Chris Cannam |
---|---|
date | Wed, 28 Aug 2019 13:14:47 +0100 |
parents | 5fb285c0d0e3 |
children |
rev | line source |
---|---|
Chris@13 | 1 <?php declare(strict_types=1); |
Chris@0 | 2 |
Chris@0 | 3 namespace PhpParser\Node\Name; |
Chris@0 | 4 |
Chris@0 | 5 class Relative extends \PhpParser\Node\Name |
Chris@0 | 6 { |
Chris@0 | 7 /** |
Chris@0 | 8 * Checks whether the name is unqualified. (E.g. Name) |
Chris@0 | 9 * |
Chris@0 | 10 * @return bool Whether the name is unqualified |
Chris@0 | 11 */ |
Chris@13 | 12 public function isUnqualified() : bool { |
Chris@0 | 13 return false; |
Chris@0 | 14 } |
Chris@0 | 15 |
Chris@0 | 16 /** |
Chris@0 | 17 * Checks whether the name is qualified. (E.g. Name\Name) |
Chris@0 | 18 * |
Chris@0 | 19 * @return bool Whether the name is qualified |
Chris@0 | 20 */ |
Chris@13 | 21 public function isQualified() : bool { |
Chris@0 | 22 return false; |
Chris@0 | 23 } |
Chris@0 | 24 |
Chris@0 | 25 /** |
Chris@0 | 26 * Checks whether the name is fully qualified. (E.g. \Name) |
Chris@0 | 27 * |
Chris@0 | 28 * @return bool Whether the name is fully qualified |
Chris@0 | 29 */ |
Chris@13 | 30 public function isFullyQualified() : bool { |
Chris@0 | 31 return false; |
Chris@0 | 32 } |
Chris@0 | 33 |
Chris@0 | 34 /** |
Chris@0 | 35 * Checks whether the name is explicitly relative to the current namespace. (E.g. namespace\Name) |
Chris@0 | 36 * |
Chris@0 | 37 * @return bool Whether the name is relative |
Chris@0 | 38 */ |
Chris@13 | 39 public function isRelative() : bool { |
Chris@0 | 40 return true; |
Chris@0 | 41 } |
Chris@13 | 42 |
Chris@13 | 43 public function toCodeString() : string { |
Chris@13 | 44 return 'namespace\\' . $this->toString(); |
Chris@13 | 45 } |
Chris@13 | 46 |
Chris@13 | 47 public function getType() : string { |
Chris@13 | 48 return 'Name_Relative'; |
Chris@13 | 49 } |
Chris@13 | 50 } |