summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-12-18 14:16:32 +0100
committerJoas Schilling <nickvergessen@owncloud.com>2015-12-18 14:25:04 +0100
commita9935bd49042e3c4a35630a980bf7e1c6d56ff20 (patch)
tree4554ba6f4f665eaa3a4ce1fce374038be2c83ebd /lib
parent0daed65e1466cc96584b5043795678ade0698fb0 (diff)
downloadnextcloud-server-a9935bd49042e3c4a35630a980bf7e1c6d56ff20.tar.gz
nextcloud-server-a9935bd49042e3c4a35630a980bf7e1c6d56ff20.zip
Add methods to interface which have always been required
Diffstat (limited to 'lib')
-rw-r--r--lib/private/backgroundjob/joblist.php2
-rw-r--r--lib/public/backgroundjob/ijob.php19
2 files changed, 19 insertions, 2 deletions
diff --git a/lib/private/backgroundjob/joblist.php b/lib/private/backgroundjob/joblist.php
index 3618b0f9e5e..446de2fa1a4 100644
--- a/lib/private/backgroundjob/joblist.php
+++ b/lib/private/backgroundjob/joblist.php
@@ -236,7 +236,7 @@ class JobList implements IJobList {
try {
try {
// Try to load the job as a service
- /** @var Job $job */
+ /** @var IJob $job */
$job = \OC::$server->query($row['class']);
} catch (QueryException $e) {
if (class_exists($row['class'])) {
diff --git a/lib/public/backgroundjob/ijob.php b/lib/public/backgroundjob/ijob.php
index a24a5434521..8d970dbe781 100644
--- a/lib/public/backgroundjob/ijob.php
+++ b/lib/public/backgroundjob/ijob.php
@@ -36,12 +36,29 @@ interface IJob {
*
* @param \OCP\BackgroundJob\IJobList $jobList The job list that manages the state of this job
* @param ILogger $logger
- * @return void
* @since 7.0.0
*/
public function execute($jobList, ILogger $logger = null);
/**
+ * @param int $id
+ * @since 7.0.0
+ */
+ public function setId($id);
+
+ /**
+ * @param int $lastRun
+ * @since 7.0.0
+ */
+ public function setLastRun($lastRun);
+
+ /**
+ * @param mixed $argument
+ * @since 7.0.0
+ */
+ public function setArgument($argument);
+
+ /**
* Get the id of the background job
* This id is determined by the job list when a job is added to the list
*