19 declare(strict_types=1);
40 return iterator_count($this);
45 $this->jobs->append($job);
50 return new static(...array_filter(iterator_to_array($this), $callable));
55 return new static(...array_slice(iterator_to_array($this), $offset, $length,
true));
63 return iterator_to_array($this);
slice(int $offset, ?int $length=null)
Extracts a slice of $length elements starting at position $offset from the Collection.
__construct(ilCronJobEntity ... $jobs)
filter(callable $callable)
Returns all the elements of this collection that satisfy the predicate $callable. ...
add(ilCronJobEntity $job)