lithium\util\Collection::each()
Applies a callback to all items in the collection.
Parameters
-
callback
$filter
The filter to apply.
Returns
CollectionThis collection instance.
Links
Source
public function each($filter) {
$this->_data = array_map($filter, $this->_data);
return $this;
}