public function export()
    {
        $priorities = array_keys($this->storage);
        rsort($priorities, SORT_NUMERIC);

        $callbacks = [];
        foreach ($priorities as $priority) {
            $callbacks = array_merge($callbacks, $this->storage[$priority]);
        }
        return $callbacks;
    }
public function export()
    {
        $priorities = array_keys($this->storage);
        rsort($priorities, SORT_NUMERIC);

        $callbacks = [];
        foreach ($priorities as $priority) {
            $callbacks = array_merge($callbacks, $this->storage[$priority]);
        }
        return $callbacks;
    }
public function export ( ) { $ priorities = array_keys ( $ this -> storage ) ; rsort ( $ priorities , SORT_NUMERIC ) ; $ callbacks = [ ] ; foreach ( $ priorities as $ priority ) { $ callbacks = array_merge ( $ callbacks , $ this -> storage [ $ priority ] ) ; } return $ callbacks ; }
Export the queue as a sorted array.
@return callable[]
Export the queue as a sorted array .