示例#1
0
 public function fromLockObject(BatchJob $dbBatchJob, BatchJobLock $dbBatchJobLock)
 {
     $this->lockExpiration = $dbBatchJobLock->getExpiration();
     $this->executionAttempts = $dbBatchJobLock->getExecutionAttempts();
     $this->lockVersion = $dbBatchJobLock->getVersion();
     $this->checkAgainTimeout = $dbBatchJobLock->getStartAt(null);
     $this->estimatedEffort = $dbBatchJobLock->getEstimatedEffort();
     $this->schedulerId = $dbBatchJobLock->getSchedulerId();
     $this->workerId = $dbBatchJobLock->getWorkerId();
 }