aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2021-03-26 09:13:05 +0100
committerChristoph Wurst <christoph@winzerhof-wurst.at>2021-03-26 09:13:05 +0100
commit389623a910a4af562ae07eb07b7eae9548fc89dc (patch)
tree592c2db5ed516ecb32279015ae67e3cd4306bb33 /lib/public
parentfbbcf26099749440858bcaba2f8f6de4cc4612bc (diff)
downloadnextcloud-server-389623a910a4af562ae07eb07b7eae9548fc89dc.tar.gz
nextcloud-server-389623a910a4af562ae07eb07b7eae9548fc89dc.zip
Document that the TimedJob interval is in seconds
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
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;
}
/**