| 1 | <?php |
||
| 8 | class ThruMutator extends Mutator |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Allows applying some operator to entire collection at once and returning it's result |
||
| 12 | * |
||
| 13 | * @param Collection $collection |
||
| 14 | * @param callable $iterator |
||
| 15 | * @return Collection |
||
| 16 | */ |
||
| 17 | 3 | public function __invoke($collection, $iterator) |
|
| 23 | } |
||
| 24 |