Extends
lithium\core\Object
Applies a callback to all items in the collection.
Parameters
- callback $filter The filter to apply.
Returns
object This collection instance.Source
public function each($filter) {
$this->_data = array_map($filter, $this->_data);
return $this;
}