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:
Roeland Jago Douma 2020-11-24 09:33:49 +01:00
parent a1cd5ca20c
commit 82d3f50b78
No known key found for this signature in database
GPG Key ID: F941078878347C0C
1 changed files with 3 additions and 3 deletions

View File

@ -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;
}