aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/BackgroundJob
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2020-11-24 09:33:49 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2020-11-24 09:33:49 +0100
commit82d3f50b783e0820ab2b82d80407d88639dcce94 (patch)
tree6c04caa0330a150a6991dd569186ec76a5a62625 /lib/public/BackgroundJob
parenta1cd5ca20c261b350a26b6536a3f0779b19e498e (diff)
downloadnextcloud-server-82d3f50b783e0820ab2b82d80407d88639dcce94.tar.gz
nextcloud-server-82d3f50b783e0820ab2b82d80407d88639dcce94.zip
Fix the OCP\BackgroundJob\Job to make it compatible with its interface
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/public/BackgroundJob')
-rw-r--r--lib/public/BackgroundJob/Job.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/public/BackgroundJob/Job.php b/lib/public/BackgroundJob/Job.php
index 83552c386d4..62b136c0cfb 100644
--- a/lib/public/BackgroundJob/Job.php
+++ b/lib/public/BackgroundJob/Job.php
@@ -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;
}