mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
Adjust since version
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
714a5b7ae2
commit
557afa7c1a
3 changed files with 5 additions and 5 deletions
|
|
@ -35,11 +35,11 @@ use OCP\ILogger;
|
|||
*/
|
||||
interface IJob {
|
||||
/**
|
||||
* @since 24.0.0
|
||||
* @since 22.2.6
|
||||
*/
|
||||
public const TIME_INSENSITIVE = 0;
|
||||
/**
|
||||
* @since 24.0.0
|
||||
* @since 22.2.6
|
||||
*/
|
||||
public const TIME_SENSITIVE = 1;
|
||||
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ interface IJobList {
|
|||
*
|
||||
* @param bool $onlyTimeSensitive
|
||||
* @return \OCP\BackgroundJob\IJob|null
|
||||
* @since 7.0.0 - In 24.0.0 parameter $onlyTimeSensitive got added
|
||||
* @since 7.0.0 - In 22.2.6 parameter $onlyTimeSensitive got added
|
||||
*/
|
||||
public function getNext(bool $onlyTimeSensitive = false): ?IJob;
|
||||
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ abstract class TimedJob extends Job {
|
|||
* the scheduled interval, of if it is okay to be delayed until a later time.
|
||||
*
|
||||
* @return bool
|
||||
* @since 24.0.0
|
||||
* @since 22.2.6
|
||||
*/
|
||||
public function isTimeSensitive(): bool {
|
||||
return $this->timeSensitivity === IJob::TIME_SENSITIVE;
|
||||
|
|
@ -71,7 +71,7 @@ abstract class TimedJob extends Job {
|
|||
* @param int $sensitivity
|
||||
* @psalm-param IJob::TIME_* $sensitivity
|
||||
* @return void
|
||||
* @since 24.0.0
|
||||
* @since 22.2.6
|
||||
*/
|
||||
public function setTimeSensitivity(int $sensitivity): void {
|
||||
if ($sensitivity !== IJob::TIME_SENSITIVE &&
|
||||
|
|
|
|||
Loading…
Reference in a new issue