Doctrine\Common\Collections\ArrayCollection::set
Adds/sets an element in the collection at the index / with the specified key.
When the collection is a Map this is like put(key,value)/add(key,value). When the collection is a List this is like add(position,value).
Signature
public function set(mixed
$key,
mixed
$value )
Parameters
$key
— mixed$value
— mixed