ArrayAccess implementation of offsetSet()
Parameters
mixed $offset:
mixed $value:
Return value
bool
See also
add()
set()
File
- drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Collections/ArrayCollection.php, line 188
Class
- ArrayCollection
- An ArrayCollection is a Collection implementation that wraps a regular PHP array.
Namespace
Doctrine\Common\Collections
Code
public function offsetSet($offset, $value) {
if (!isset($offset)) {
return $this
->add($value);
}
return $this
->set($offset, $value);
}