From d967151f520ba6c860ed9a727e3363ec04a6506d Mon Sep 17 00:00:00 2001 From: Julien Veyssier Date: Tue, 9 Apr 2024 11:12:48 +0200 Subject: fix(bg-jobs): review adjustments Signed-off-by: Julien Veyssier --- lib/private/BackgroundJob/JobList.php | 3 +-- lib/public/BackgroundJob/IJobList.php | 8 ++++---- 2 files changed, 5 insertions(+), 6 deletions(-) (limited to 'lib') diff --git a/lib/private/BackgroundJob/JobList.php b/lib/private/BackgroundJob/JobList.php index 26bc198c6e0..bc3416e3528 100644 --- a/lib/private/BackgroundJob/JobList.php +++ b/lib/private/BackgroundJob/JobList.php @@ -211,8 +211,7 @@ class JobList implements IJobList { } /** - * Get the next job in the list - * @return ?IJob the next job to run. Beware that this object may be a singleton and may be modified by the next call to buildJob. + * @inheritDoc */ public function getNext(bool $onlyTimeSensitive = false, ?array $jobClasses = null): ?IJob { $query = $this->connection->getQueryBuilder(); diff --git a/lib/public/BackgroundJob/IJobList.php b/lib/public/BackgroundJob/IJobList.php index 396a28fc120..f200988695d 100644 --- a/lib/public/BackgroundJob/IJobList.php +++ b/lib/public/BackgroundJob/IJobList.php @@ -108,11 +108,11 @@ interface IJobList { public function getJobsIterator($job, ?int $limit, int $offset): iterable; /** - * get the next job in the list + * Get the next job in the list * * @param bool $onlyTimeSensitive Whether we get only time sensitive jobs or not - * @param array|null $jobClasses List of job classes to restrict which next job we get - * @return IJob|null + * @param class-string[]|null $jobClasses List of job classes to restrict which next job we get + * @return ?IJob the next job to run. Beware that this object may be a singleton and may be modified by the next call to buildJob. * @since 7.0.0 - In 24.0.0 parameter $onlyTimeSensitive got added; In 30.0.0 parameter $jobClasses got added */ public function getNext(bool $onlyTimeSensitive = false, ?array $jobClasses = null): ?IJob; @@ -176,7 +176,7 @@ interface IJobList { * Returns a count of jobs per Job class * * @return list - * @since 29.0.0 + * @since 30.0.0 */ public function countByClass(): array; } -- cgit v1.2.3