original_string: public function linkedTo(string $variable = null, array $labels = []): self
      {
          $path = new self;
          $path->elements = $this
              ->elements
              ->add(Relationship::both())
              ->add(new Node($variable, $labels));
          $path->lastOperation = Node::class;
  
          return $path;
      }
code: public function linkedTo(string $variable = null, array $labels = []): self
      {
          $path = new self;
          $path->elements = $this
              ->elements
              ->add(Relationship::both())
              ->add(new Node($variable, $labels));
          $path->lastOperation = Node::class;
  
          return $path;
      }
code_tokens: public function linkedTo ( string $ variable = null , array $ labels = [ ] ) : self { $ path = new self ; $ path -> elements = $ this -> elements -> add ( Relationship :: both ( ) ) -> add ( new Node ( $ variable , $ labels ) ) ; $ path -> lastOperation = Node :: class ; return $ path ; }
docstring: Create a relationship to the given node
  
  @param string $variable
  @param array $labels
  
  @return self
docstring_tokens: Create a relationship to the given node