1 <?php declare(strict_types=1);
14 public function add($element) : void;
20 public function remove($key) :
void;
38 public function getKey($element);
43 public function clear() : void;
49 public function contains($element) : bool;
55 public function get($key);
61 public function set($key, $value) :
void;
66 public function isEmpty() : bool;
72 public function getKeys() : array;
85 public function filter(callable $callable);
95 public function slice($offset, $length = null);
100 public function toArray() : array;
Interface ilBuddySystemCollection.
slice($offset, $length=null)
Extracts a slice of $length elements starting at position $offset from the Collection.
getKeys()
Gets all indices of the collection.
filter(callable $callable)
Returns all the elements of this collection that satisfy the predicate $callable. ...
getValues()
Gets all values of the collection.
add($element)
Adds an element at the end of the collection.