Fix the OCP\BackgroundJob\Job to make it compatible with its interface
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
a1cd5ca20c
commit
82d3f50b78
|
@ -68,7 +68,7 @@ abstract class Job implements IJob {
|
|||
*
|
||||
* @since 15.0.0
|
||||
*/
|
||||
public function execute($jobList, ILogger $logger = null) {
|
||||
public function execute(IJobList $jobList, ILogger $logger = null) {
|
||||
$jobList->setLastRun($this);
|
||||
if ($logger === null) {
|
||||
$logger = \OC::$server->getLogger();
|
||||
|
@ -95,14 +95,14 @@ abstract class Job implements IJob {
|
|||
/**
|
||||
* @since 15.0.0
|
||||
*/
|
||||
final public function setId($id) {
|
||||
final public function setId(int $id) {
|
||||
$this->id = $id;
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 15.0.0
|
||||
*/
|
||||
final public function setLastRun($lastRun) {
|
||||
final public function setLastRun(int $lastRun) {
|
||||
$this->lastRun = $lastRun;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue