Bravo3\Orm\Drivers\Common\UnitOfWork::getWork PHP Метод

getWork() публичный Метод

Get the next command and remove it from the queue
public getWork ( ) : Command | null
Результат Command | null
    public function getWork()
    {
        return array_shift($this->commands);
    }

Usage Example

Пример #1
0
 /**
  * Execute all items in the work queue in a single transaction
  */
 private function flushMulti()
 {
     $this->clientCmd('pipeline', function ($pipe) {
         /* @var Pipeline $pipe */
         while ($command = $this->unit_of_work->getWork()) {
             $pipe->executeCommand($this->getPredisCommand($command));
         }
     });
 }
All Usage Examples Of Bravo3\Orm\Drivers\Common\UnitOfWork::getWork