Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2021-03-26 12:45:50 +0300
committerGitHub <noreply@github.com>2021-03-26 12:45:50 +0300
commita75f0e62fa0b9e140ba0dd8ffb2e928a5d3007dd (patch)
treea522e58565ba2131ba1687747039a8515ee0664b /lib/public
parent9fd29173cf83da8113b5a945f7b610b2e45ed312 (diff)
parent389623a910a4af562ae07eb07b7eae9548fc89dc (diff)
Merge pull request #26308 from nextcloud/enhancement/timed-job-interval-description
Document that the TimedJob interval is in seconds
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/BackgroundJob/TimedJob.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/public/BackgroundJob/TimedJob.php b/lib/public/BackgroundJob/TimedJob.php
index 8797b8dd63b..01eecd43379 100644
--- a/lib/public/BackgroundJob/TimedJob.php
+++ b/lib/public/BackgroundJob/TimedJob.php
@@ -42,10 +42,12 @@ abstract class TimedJob extends Job {
/**
* set the interval for the job
*
+ * @param int $seconds the time to pass between two runs of the same job in seconds
+ *
* @since 15.0.0
*/
- public function setInterval(int $interval) {
- $this->interval = $interval;
+ public function setInterval(int $seconds) {
+ $this->interval = $seconds;
}
/**