public function enterNode(Node $node)
    {
        if ($node instanceof UseUse) {
            $this->imports[] = $node->name->toString();
        }

        return $node;
    }
public function enterNode(Node $node)
    {
        if ($node instanceof UseUse) {
            $this->imports[] = $node->name->toString();
        }

        return $node;
    }
public function enterNode ( Node $ node ) { if ( $ node instanceof UseUse ) { $ this -> imports [ ] = $ node -> name -> toString ( ) ; } return $ node ; }
Enter the node and record the import.

@param \PhpParser\Node $node

@return \PhpParser\Node
Enter the node and record the import .