1<?
php declare(strict_types=1);
19 $this->jobs =
new ArrayIterator(
$jobs);
35 return iterator_count($this);
43 $this->jobs->append($job);
51 return new static(array_filter(iterator_to_array($this), $callable));
59 return new static(array_slice(iterator_to_array($this), $offset, $length,
true));
67 return iterator_to_array($this);
An exception for terminatinating execution or to throw for unit testing.
toArray()
ilCronJobEntity[]
filter(callable $callable)
Returns all the elements of this collection that satisfy the predicate $callable.self
slice(int $offset, ?int $length=null)
Extracts a slice of $length elements starting at position $offset from the Collection....
__construct(array $jobs=[])
ilCronJobs constructor.
add(ilCronJobEntity $job)
Class ilCronJobCollection.