Files
apimacro/vendor/nikic/php-parser/lib/PhpParser/Node/Name/FullyQualified.php

50 lines
1.1 KiB
PHP
Raw Normal View History

2024-05-07 12:17:25 +02:00
<?php declare(strict_types=1);
namespace PhpParser\Node\Name;
2024-05-17 12:24:19 +00:00
class FullyQualified extends \PhpParser\Node\Name {
2024-05-07 12:17:25 +02:00
/**
* Checks whether the name is unqualified. (E.g. Name)
*
* @return bool Whether the name is unqualified
*/
2024-05-17 12:24:19 +00:00
public function isUnqualified(): bool {
2024-05-07 12:17:25 +02:00
return false;
}
/**
* Checks whether the name is qualified. (E.g. Name\Name)
*
* @return bool Whether the name is qualified
*/
2024-05-17 12:24:19 +00:00
public function isQualified(): bool {
2024-05-07 12:17:25 +02:00
return false;
}
/**
* Checks whether the name is fully qualified. (E.g. \Name)
*
* @return bool Whether the name is fully qualified
*/
2024-05-17 12:24:19 +00:00
public function isFullyQualified(): bool {
2024-05-07 12:17:25 +02:00
return true;
}
/**
* Checks whether the name is explicitly relative to the current namespace. (E.g. namespace\Name)
*
* @return bool Whether the name is relative
*/
2024-05-17 12:24:19 +00:00
public function isRelative(): bool {
2024-05-07 12:17:25 +02:00
return false;
}
2024-05-17 12:24:19 +00:00
public function toCodeString(): string {
2024-05-07 12:17:25 +02:00
return '\\' . $this->toString();
}
2024-05-17 12:24:19 +00:00
public function getType(): string {
2024-05-07 12:17:25 +02:00
return 'Name_FullyQualified';
}
}