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);
slice(int $offset, ?int $length=null)
Extracts a slice of $length elements starting at position $offset from the Collection.If $length is null it returns all elements from $offset to the end of the Collection. Calling this method will only return the selected slice and NOT change the elements contained in the collection slice is called on. The offset to start from. The maximum number of elements to return, or null for no limit. self
__construct(array $jobs=[])
ilCronJobs constructor.
toArray()
ilCronJobEntity[]
filter(callable $callable)
Returns all the elements of this collection that satisfy the predicate $callable.self ...
Class ilCronJobCollection.
add(ilCronJobEntity $job)