public function getAll()
    {
        $listeners = [];

        // Get a clone of the queue.
        $queue = $this->getIterator();

        foreach ($queue as $listener) {
            $listeners[] = $listener;
        }

        return $listeners;
    }
public function getAll()
    {
        $listeners = [];

        // Get a clone of the queue.
        $queue = $this->getIterator();

        foreach ($queue as $listener) {
            $listeners[] = $listener;
        }

        return $listeners;
    }
public function getAll ( ) { $ listeners = [ ] ; // Get a clone of the queue. $ queue = $ this -> getIterator ( ) ; foreach ( $ queue as $ listener ) { $ listeners [ ] = $ listener ; } return $ listeners ; }
Get all listeners contained in this queue, sorted according to their priority.

@return  object[]  An array of listeners.

@since   2.0
Get all listeners contained in this queue sorted according to their priority .