function Collection::set

Same name in this branch

Sets an element in the collection at the specified key/index.

Parameters

string|integer $key The key/index of the element to set.:

mixed $value The element to set.:

1 method overrides Collection::set()
ArrayCollection::set in drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Collections/ArrayCollection.php
Adds/sets an element in the collection at the index / with the specified key.

File

drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Collections/Collection.php, line 132

Class

Collection
The missing (SPL) Collection/Array/OrderedMap interface.

Namespace

Doctrine\Common\Collections

Code

function set($key, $value);