You are here

public function Collection::clear in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/collections/lib/Doctrine/Common/Collections/Collection.php \Doctrine\Common\Collections\Collection::clear()

Clears the collection, removing all elements.

Return value

void

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

File

vendor/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();