public function getIterator()
    {
        if (null === $this->queue) {
            $this->queue = new SplPriorityQueue();
            $this->queueOrder = 0;
            foreach (parent::getIterator() as $filter) {
                $this->queue->insert(
                    $filter,
                    array($this->priorities[$filter->getName()], $this->queueOrder--)
                );
            }
        }
        return clone $this->queue;
    }
public function getIterator()
    {
        if (null === $this->queue) {
            $this->queue = new SplPriorityQueue();
            $this->queueOrder = 0;
            foreach (parent::getIterator() as $filter) {
                $this->queue->insert(
                    $filter,
                    array($this->priorities[$filter->getName()], $this->queueOrder--)
                );
            }
        }
        return clone $this->queue;
    }
public function getIterator ( ) { if ( null === $ this -> queue ) { $ this -> queue = new SplPriorityQueue ( ) ; $ this -> queueOrder = 0 ; foreach ( parent :: getIterator ( ) as $ filter ) { $ this -> queue -> insert ( $ filter , array ( $ this -> priorities [ $ filter -> getName ( ) ] , $ this -> queueOrder -- ) ) ; } } return clone $ this -> queue ; }
Build a SplPriorityQueue if not already and returns a clone

@return SplPriorityQueue
Build a SplPriorityQueue if not already and returns a clone