DusanKasan / Knapsack

Collection pipeline library for PHP

Home Page:http://dusankasan.github.io/Knapsack/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Create Collection trait

DusanKasan opened this issue · comments

Create a Collection trait that can be easily used in any Traversable to provide Collection functionality. See Cake Collections for example.

The problem here is that after calling any of the methods that return Collection, you would actually get Collection instance, not the original Traversable. Is this a problem?

Introduced in 9efbbd5