Create a fake routine, check for its progress.

This commit is contained in:
James Cole
2018-04-30 06:37:29 +02:00
parent 1c2089b8a3
commit cd75224cdd
9 changed files with 207 additions and 6 deletions

View File

@@ -334,6 +334,20 @@ class ImportJobRepository implements ImportJobRepositoryInterface
return $job;
}
/**
* @param ImportJob $job
* @param string $stage
*
* @return ImportJob
*/
public function setStage(ImportJob $job, string $stage): ImportJob
{
$job->stage = $stage;
$job->save();
return $job;
}
/**
* @param ImportJob $job
* @param string $status