Doctrine\Common\Collections\Collection::set
Sets an element in the collection at the specified key/index.
Signature
public function set(string|integer
$key,
mixed
$value )
Parameters
$key
— object- The key/index of the element to set.
$value
— mixed- The element to set.