3 namespace Elgg\Structs;
58 public function map(callable $mapper);
A read-only interface to a (possibly mutable) group of items.
contains($item)
Returns true iff the item is in this collection at least once.
map(callable $mapper)
Take items of the collection and return a new collection with all the items having the $mapper applie...
filter(callable $filter)
Returns a new collection only containing the elements which pass the filter.
$filter
Layout content filter.