protected function saveImportLog() { $this->importLog->setUserLastIndex($this->lastItemIndex); $this->importLog->setUnProcessItemCount($this->itemCollector->getUnProcessItemCount()); $this->importLog->setRuntime($this->runtimeWatcher->getRuntime()); $error = $this->getError(); $this->importLog->setError($error[0]); $log = $this->importLog->getUserLog(); $this->entityManager->persist($log); $this->entityManager->flush(); }
/** * @return bool */ protected function isTimeOut() { return $this->runtimeWatcher->isTimeOut(); }
/** * @return bool */ protected function isInTimeLimit() { return $this->runtimeWatcher->isInTimeLimit(); }