FullyQualified.php 929 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. class PHPParser_Node_Name_FullyQualified extends PHPParser_Node_Name
  3. {
  4. /**
  5. * Checks whether the name is unqualified. (E.g. Name)
  6. *
  7. * @return bool Whether the name is unqualified
  8. */
  9. public function isUnqualified() {
  10. return false;
  11. }
  12. /**
  13. * Checks whether the name is qualified. (E.g. Name\Name)
  14. *
  15. * @return bool Whether the name is qualified
  16. */
  17. public function isQualified() {
  18. return false;
  19. }
  20. /**
  21. * Checks whether the name is fully qualified. (E.g. \Name)
  22. *
  23. * @return bool Whether the name is fully qualified
  24. */
  25. public function isFullyQualified() {
  26. return true;
  27. }
  28. /**
  29. * Checks whether the name is explicitly relative to the current namespace. (E.g. namespace\Name)
  30. *
  31. * @return bool Whether the name is relative
  32. */
  33. public function isRelative() {
  34. return false;
  35. }
  36. }