PhpParser\Node\Name::toString PHP Method

toString() public method

Returns a string representation of the name by imploding the namespace parts with the namespace separator.
public toString ( ) : string
return string String representation
    public function toString()
    {
        return implode('\\', $this->parts);
    }

Usage Example

Example #1
0
 public function getFQCN(Name $node = null)
 {
     if ($node === null) {
         return $node;
     }
     if ($node->isFullyQualified()) {
         return $this->parseFQCN($node->toString());
     }
     $fqcn = $this->uses->find($node->getFirst());
     if ($fqcn) {
         return $fqcn;
     }
     return $this->createFQCN($node->toString());
 }
All Usage Examples Of PhpParser\Node\Name::toString