diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2021-03-26 10:45:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-26 10:45:50 +0100 |
commit | a75f0e62fa0b9e140ba0dd8ffb2e928a5d3007dd (patch) | |
tree | a522e58565ba2131ba1687747039a8515ee0664b | |
parent | 9fd29173cf83da8113b5a945f7b610b2e45ed312 (diff) | |
parent | 389623a910a4af562ae07eb07b7eae9548fc89dc (diff) | |
download | nextcloud-server-a75f0e62fa0b9e140ba0dd8ffb2e928a5d3007dd.tar.gz nextcloud-server-a75f0e62fa0b9e140ba0dd8ffb2e928a5d3007dd.zip |
Merge pull request #26308 from nextcloud/enhancement/timed-job-interval-description
Document that the TimedJob interval is in seconds
-rw-r--r-- | lib/public/BackgroundJob/TimedJob.php | 6 |
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; } /** |