ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
JobCollection.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\Cron\Job;
22
26interface JobCollection extends \Countable, \IteratorAggregate
27{
28 public function add(\ILIAS\Cron\Job\JobEntity $job): void;
29
35 public function filter(callable $callable): static;
36
45 public function slice(int $offset, ?int $length = null): static;
46
50 public function toArray(): array;
51}
@template-extends \IteratorAggregate<\ILIAS\Cron\Job\JobEntity>
filter(callable $callable)
Returns all the elements of this collection that satisfy the predicate $callable.
slice(int $offset, ?int $length=null)
Extracts a slice of $length elements starting at position $offset from the Collection.
add(\ILIAS\Cron\Job\JobEntity $job)
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.