function clear(): void {
        $queue = $this->queue;
        $this->queue = array();
        
        while($item = \array_shift($queue)) {
            unset($item);
        }
    }
function clear(): void {
        $queue = $this->queue;
        $this->queue = array();
        
        while($item = \array_shift($queue)) {
            unset($item);
        }
    }
function clear ( ) : void { $ queue = $ this -> queue ; $ this -> queue = array ( ) ; while ( $ item = \ array_shift ( $ queue ) ) { unset ( $ item ) ; } }
Unsets all queue items.
@return void
Unsets all queue items .