function Collection::add

Same name in this branch

Adds an element at the end of the collection.

Parameters

mixed $element The element to add.:

Return value

boolean Always TRUE.

1 method overrides Collection::add()
ArrayCollection::add in drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Collections/ArrayCollection.php
Adds an element to the collection.

File

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

Class

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

Namespace

Doctrine\Common\Collections

Code

function add($element);