Doctrine\Common\Collections\ArrayCollection::map
Applies the given function to each element in the collection and returns a new collection with the elements returned by the function.
Signature
public function map(Closure
$func )
Parameters
$func
— Closure
Returns
- Collection