You are here

public function Collection::set in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/collections/lib/Doctrine/Common/Collections/Collection.php \Doctrine\Common\Collections\Collection::set()

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 vendor/doctrine/collections/lib/Doctrine/Common/Collections/AbstractLazyCollection.php
Sets an element in the collection at the specified key/index.
ArrayCollection::set in vendor/doctrine/collections/lib/Doctrine/Common/Collections/ArrayCollection.php
Sets an element in the collection at the specified key/index.

File

vendor/doctrine/collections/lib/Doctrine/Common/Collections/Collection.php, line 145

Class

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

Namespace

Doctrine\Common\Collections

Code

public function set($key, $value);