public function ArrayCollection::add

Adds an element to the collection.

Parameters

mixed $value:

Return value

boolean Always TRUE.

Overrides Collection::add

1 call to ArrayCollection::add()
ArrayCollection::offsetSet in drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Collections/ArrayCollection.php
ArrayAccess implementation of offsetSet()

File

drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Collections/ArrayCollection.php, line 337

Class

ArrayCollection
An ArrayCollection is a Collection implementation that wraps a regular PHP array.

Namespace

Doctrine\Common\Collections

Code

public function add($value) {
  $this->_elements[] = $value;
  return true;
}