function Name::toString
Returns a string representation of the name itself, without taking the name type into account (e.g., not including a leading backslash for fully qualified names).
@psalm-return non-empty-string
Return value
string String representation
3 calls to Name::toString()
- 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.
- Name::toCodeString in vendor/
nikic/ php-parser/ lib/ PhpParser/ Node/ Name.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 113
Class
Namespace
PhpParser\NodeCode
public function toString() : string {
return $this->name;
}