getQueueSize() public method

Returns the number of commands in the queue
public getQueueSize ( ) : integer
return integer
Exemplo n.º 1
0
 /**
  * Execute the current unit of work
  *
  * @return void
  */
 public function flush()
 {
     switch ($this->unit_of_work->getQueueSize()) {
         case 0:
             return;
         case 1:
             $this->flushSingle();
             break;
         default:
             $this->flushMulti();
             break;
     }
 }