public function pushAll($values)
    {
        foreach ($values as $value) {
            $this->queue->enqueue($value);
        }
        for ($i = count($this->queue); $i-- && !$this->queue->isEmpty();) {
            $this->flush();
        }
    }
public function pushAll($values)
    {
        foreach ($values as $value) {
            $this->queue->enqueue($value);
        }
        for ($i = count($this->queue); $i-- && !$this->queue->isEmpty();) {
            $this->flush();
        }
    }
public function pushAll ( $ values ) { foreach ( $ values as $ value ) { $ this -> queue -> enqueue ( $ value ) ; } for ( $ i = count ( $ this -> queue ) ; $ i -- && ! $ this -> queue -> isEmpty ( ) ; ) { $ this -> flush ( ) ; } }
Push all values to the queue.

@param   array  $values
@return  void
Push all values to the queue .