]> source.dussan.org Git - nextcloud-server.git/commitdiff
Add methods to interface which have always been required
authorJoas Schilling <nickvergessen@owncloud.com>
Fri, 18 Dec 2015 13:16:32 +0000 (14:16 +0100)
committerJoas Schilling <nickvergessen@owncloud.com>
Fri, 18 Dec 2015 13:25:04 +0000 (14:25 +0100)
lib/private/backgroundjob/joblist.php
lib/public/backgroundjob/ijob.php

index 3618b0f9e5e389a77a820fdc32d7415577f3000d..446de2fa1a43f4329687b2557eda9ab31d72d26d 100644 (file)
@@ -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'])) {
index a24a54345210ad4b63acced3735610648ebf4d1e..8d970dbe781e35374107a4d8ccc9328681f0e3e0 100644 (file)
@@ -36,11 +36,28 @@ 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