-<?php
+<?php declare(strict_types=1);
namespace PhpParser\Node\Name;
*
* @return bool Whether the name is unqualified
*/
- public function isUnqualified() {
+ public function isUnqualified() : bool {
return false;
}
*
* @return bool Whether the name is qualified
*/
- public function isQualified() {
+ public function isQualified() : bool {
return false;
}
*
* @return bool Whether the name is fully qualified
*/
- public function isFullyQualified() {
+ public function isFullyQualified() : bool {
return false;
}
*
* @return bool Whether the name is relative
*/
- public function isRelative() {
+ public function isRelative() : bool {
return true;
}
-}
\ No newline at end of file
+
+ public function toCodeString() : string {
+ return 'namespace\\' . $this->toString();
+ }
+
+ public function getType() : string {
+ return 'Name_Relative';
+ }
+}