Adjust since version

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2022-03-10 13:47:05 +01:00
parent 714a5b7ae2
commit 557afa7c1a
No known key found for this signature in database
GPG key ID: 7076EA9751AACDDA
3 changed files with 5 additions and 5 deletions

View file

@ -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;

View file

@ -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;

View file

@ -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 &&