public function AbstractLazyCollection::add in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/doctrine/collections/lib/Doctrine/Common/Collections/AbstractLazyCollection.php \Doctrine\Common\Collections\AbstractLazyCollection::add()
Adds an element at the end of the collection.
Parameters
mixed $element The element to add.:
Return value
boolean Always TRUE.
Overrides Collection::add
File
- vendor/
doctrine/ collections/ lib/ Doctrine/ Common/ Collections/ AbstractLazyCollection.php, line 56
Class
- AbstractLazyCollection
- Lazy collection that is backed by a concrete collection
Namespace
Doctrine\Common\CollectionsCode
public function add($element) {
$this
->initialize();
return $this->collection
->add($element);
}