Vendor/langcode-conv/zendframework/zend-stdlib/src/PriorityQueue.php
public function toArray($flag = self::EXTR_DATA)
    {
        switch ($flag) {
            case self::EXTR_BOTH:
                return $this->items;
            case self::EXTR_PRIORITY:
                return array_map(function ($item) {
                    return $item['priority'];
                }, $this->items);
            case self::EXTR_DATA:
            default:
                return array_map(function ($item) {
                    return $item['data'];
                }, $this->items);
        }
    }
public function toArray($flag = self::EXTR_DATA)
    {
        switch ($flag) {
            case self::EXTR_BOTH:
                return $this->items;
            case self::EXTR_PRIORITY:
                return array_map(function ($item) {
                    return $item['priority'];
                }, $this->items);
            case self::EXTR_DATA:
            default:
                return array_map(function ($item) {
                    return $item['data'];
                }, $this->items);
        }
    }
public function toArray ( $ flag = self :: EXTR_DATA ) { switch ( $ flag ) { case self :: EXTR_BOTH : return $ this -> items ; case self :: EXTR_PRIORITY : return array_map ( function ( $ item ) { return $ item [ 'priority' ] ; } , $ this -> items ) ; case self :: EXTR_DATA : default : return array_map ( function ( $ item ) { return $ item [ 'data' ] ; } , $ this -> items ) ; } }
Serialize to an array

By default, returns only the item data, and in the order registered (not
sorted). You may provide one of the EXTR_* flags as an argument, allowing
the ability to return priorities or both data and priority.

@param  int $flag
@return array
Serialize to an array