1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-12-15 19:07:06 +01:00
PHP-Parser/lib/PhpParser/Node/Name/FullyQualified.php

51 lines
1.2 KiB
PHP
Raw Normal View History

2017-08-18 22:57:27 +02:00
<?php declare(strict_types=1);
namespace PhpParser\Node\Name;
class FullyQualified extends \PhpParser\Node\Name
{
/**
* Checks whether the name is unqualified. (E.g. Name)
*
* @return bool Whether the name is unqualified
*/
2017-04-28 21:40:59 +02:00
public function isUnqualified() : bool {
return false;
}
/**
* Checks whether the name is qualified. (E.g. Name\Name)
*
* @return bool Whether the name is qualified
*/
2017-04-28 21:40:59 +02:00
public function isQualified() : bool {
return false;
}
/**
* Checks whether the name is fully qualified. (E.g. \Name)
*
* @return bool Whether the name is fully qualified
*/
2017-04-28 21:40:59 +02:00
public function isFullyQualified() : bool {
return true;
}
/**
* Checks whether the name is explicitly relative to the current namespace. (E.g. namespace\Name)
*
* @return bool Whether the name is relative
*/
2017-04-28 21:40:59 +02:00
public function isRelative() : bool {
return false;
}
2017-04-28 21:40:59 +02:00
public function toCodeString() : string {
return '\\' . $this->toString();
}
public function getType() : string {
return 'Name_FullyQualified';
}
2018-01-10 18:04:06 +01:00
}