original_string: public function toArray(): array
      {
          /* Enable extraction of data and priority */
          $this->setExtractFlags(self::EXTR_BOTH);
  
          /* Prepare output */
          $data = [];
  
          /* Iterate yourself */
          foreach ($this as $item) {
              $data[] = $item;
          }
  
          return $data;
      }
code: public function toArray(): array
      {
          /* Enable extraction of data and priority */
          $this->setExtractFlags(self::EXTR_BOTH);
  
          /* Prepare output */
          $data = [];
  
          /* Iterate yourself */
          foreach ($this as $item) {
              $data[] = $item;
          }
  
          return $data;
      }
code_tokens: public function toArray ( ) : array { /* Enable extraction of data and priority */ $ this -> setExtractFlags ( self :: EXTR_BOTH ) ; /* Prepare output */ $ data = [ ] ; /* Iterate yourself */ foreach ( $ this as $ item ) { $ data [ ] = $ item ; } return $ data ; }
docstring: Iterates the queue and returns an array containing each item with
  the data and priority set.
  
  @return array The array representation of the queue
docstring_tokens: Iterates the queue and returns an array containing each item with the data and priority set .