Returns the number of commands in the queue
public getQueueSize ( ) : integer | ||
return | integer |
/** * 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; } }