public function each($callback) { foreach ($this->collection as $key => $value) { $callback($value, $key); } }