You are here

public function Collection::add in Zircon Profile 8

Same name in this branch
  1. 8 vendor/doctrine/collections/lib/Doctrine/Common/Collections/Collection.php \Doctrine\Common\Collections\Collection::add()
  2. 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
  1. 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\Collections

Code

public function add($element);