function Name::toCodeString
Returns a string representation of the name as it would occur in code (e.g., including leading backslash for fully qualified names.
@psalm-return non-empty-string
Return value
string String representation
2 methods override Name::toCodeString()
- FullyQualified::toCodeString in vendor/
nikic/ php-parser/ lib/ PhpParser/ Node/ Name/ FullyQualified.php - Returns a string representation of the name as it would occur in code (e.g., including leading backslash for fully qualified names.
- Relative::toCodeString in vendor/
nikic/ php-parser/ lib/ PhpParser/ Node/ Name/ Relative.php - Returns a string representation of the name as it would occur in code (e.g., including leading backslash for fully qualified names.
File
-
vendor/
nikic/ php-parser/ lib/ PhpParser/ Node/ Name.php, line 124
Class
Namespace
PhpParser\NodeCode
public function toCodeString() : string {
return $this->toString();
}