lithium\util\Collection::each()

public method

Applies a callback to all items in the collection.

Parameters

  • callback $filter

    The filter to apply.

Returns

Collection

This collection instance.

Source

	public function each($filter) {
		$this->_data = array_map($filter, $this->_data);
		return $this;
	}