Skip to content

Commit

Permalink
Document that the TimedJob interval is in seconds
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Wurst <[email protected]>
  • Loading branch information
ChristophWurst committed Mar 26, 2021
1 parent fbbcf26 commit 389623a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/public/BackgroundJob/TimedJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit 389623a

Please sign in to comment.