1 <?php declare(strict_types=1);
3 namespace PhpParser\Node\Name;
5 class FullyQualified extends \PhpParser\Node\Name
8 * Checks whether the name is unqualified. (E.g. Name)
10 * @return bool Whether the name is unqualified
12 public function isUnqualified() : bool {
17 * Checks whether the name is qualified. (E.g. Name\Name)
19 * @return bool Whether the name is qualified
21 public function isQualified() : bool {
26 * Checks whether the name is fully qualified. (E.g. \Name)
28 * @return bool Whether the name is fully qualified
30 public function isFullyQualified() : bool {
35 * Checks whether the name is explicitly relative to the current namespace. (E.g. namespace\Name)
37 * @return bool Whether the name is relative
39 public function isRelative() : bool {
43 public function toCodeString() : string {
44 return '\\' . $this->toString();
47 public function getType() : string {
48 return 'Name_FullyQualified';