Added a copy() method on collections

This commit is contained in:
Andy Miller
2015-01-09 13:35:05 -07:00
parent f48a05e247
commit 5bdf22764f

View File

@@ -35,6 +35,17 @@ class Collection extends Iterator
return $this->params;
}
/**
*
* Create a copy of this collection
*
* @return static
*/
public function copy()
{
return new static($this->items, $this->params, $this->pages);
}
/**
* Set parameters to the Collection
*