public function Collection::set in Plug 7
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.:
Return value
void
2 methods override Collection::set()
- AbstractLazyCollection::set in lib/
doctrine/ collections/ lib/ Doctrine/ Common/ Collections/ AbstractLazyCollection.php - Sets an element in the collection at the specified key/index.
- ArrayCollection::set in lib/
doctrine/ collections/ lib/ Doctrine/ Common/ Collections/ ArrayCollection.php - Sets an element in the collection at the specified key/index.
File
- lib/
doctrine/ collections/ lib/ Doctrine/ Common/ Collections/ Collection.php, line 145
Class
- Collection
- The missing (SPL) Collection/Array/OrderedMap interface.
Namespace
Doctrine\Common\CollectionsCode
public function set($key, $value);