public function Collection::add in Plug 7
Adds an element at the end of the collection.
Parameters
mixed $element The element to add.:
Return value
boolean Always TRUE.
2 methods override Collection::add()
- AbstractLazyCollection::add in lib/
doctrine/ collections/ lib/ Doctrine/ Common/ Collections/ AbstractLazyCollection.php - Adds an element at the end of the collection.
- ArrayCollection::add in lib/
doctrine/ collections/ lib/ Doctrine/ Common/ Collections/ ArrayCollection.php - Adds an element at the end of the collection.
File
- lib/
doctrine/ collections/ lib/ Doctrine/ Common/ Collections/ Collection.php, line 58
Class
- Collection
- The missing (SPL) Collection/Array/OrderedMap interface.
Namespace
Doctrine\Common\CollectionsCode
public function add($element);