19declare(strict_types=1);
31 public function add($element): void;
37 public function remove(
$key):
void;
78 public function set(
$key, $value):
void;
102 public function filter(callable $callable): self;
112 public function slice(
int $offset,
int $length =
null): self;
Interface ilBuddySystemCollection.
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.
getKeys()
Gets all indices of the collection.
getValues()
Gets all values of the collection.
add($element)
Adds an element at the end of the collection.