| 1 | <?php | ||
| 8 | class PluckMutator extends Mutator | ||
| 9 | { | ||
| 10 | /** | ||
| 11 | * Serves as shorthand to get list of specific key value from every element | ||
| 12 | * | ||
| 13 | * If key not found returns null | ||
| 14 | * | ||
| 15 | * @param Collection $collection | ||
| 16 | * @param string|int $key | ||
| 17 | * @return Collection | ||
| 18 | */ | ||
| 19 | public function __invoke($collection, $key) | ||
| 37 | } | ||
| 38 |