You are here

public function Collection::clear in Plug 7

Clears the collection, removing all elements.

Return value

void

2 methods override Collection::clear()
AbstractLazyCollection::clear in lib/doctrine/collections/lib/Doctrine/Common/Collections/AbstractLazyCollection.php
Clears the collection, removing all elements.
ArrayCollection::clear in lib/doctrine/collections/lib/Doctrine/Common/Collections/ArrayCollection.php
Clears the collection, removing all elements.

File

lib/doctrine/collections/lib/Doctrine/Common/Collections/Collection.php, line 65

Class

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

Namespace

Doctrine\Common\Collections

Code

public function clear();