public function Collection::add in Zircon Profile 8
Same name in this branch
- 8 vendor/doctrine/collections/lib/Doctrine/Common/Collections/Collection.php \Doctrine\Common\Collections\Collection::add()
- 8 vendor/phpdocumentor/reflection-docblock/src/phpDocumentor/Reflection/DocBlock/Type/Collection.php \phpDocumentor\Reflection\DocBlock\Type\Collection::add()
Same name and namespace in other branches
- 8.0 vendor/doctrine/collections/lib/Doctrine/Common/Collections/Collection.php \Doctrine\Common\Collections\Collection::add()
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 vendor/
doctrine/ collections/ lib/ Doctrine/ Common/ Collections/ AbstractLazyCollection.php - Adds an element at the end of the collection.
- ArrayCollection::add in vendor/
doctrine/ collections/ lib/ Doctrine/ Common/ Collections/ ArrayCollection.php - Adds an element at the end of the collection.
File
- vendor/
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);