original_string: public function merge(self $queue): void
      {
          $data = $queue->toArray();
  
          foreach ($data as $item) {
              $this->insert($item['data'], $item['priority']);
          }
      }
code: public function merge(self $queue): void
      {
          $data = $queue->toArray();
  
          foreach ($data as $item) {
              $this->insert($item['data'], $item['priority']);
          }
      }
code_tokens: public function merge ( self $ queue ) : void { $ data = $ queue -> toArray ( ) ; foreach ( $ data as $ item ) { $ this -> insert ( $ item [ 'data' ] , $ item [ 'priority' ] ) ; } }
docstring: Merges the given queue data into this queue.
  
  @param PriorityQueue $queue The queue to merge
  @return void
docstring_tokens: Merges the given queue data into this queue .