You are here

public function ArrayCollection::toArray in Plug 7

Gets a native PHP array representation of the collection.

Return value

array

Overrides Collection::toArray

File

lib/doctrine/collections/lib/Doctrine/Common/Collections/ArrayCollection.php, line 56

Class

ArrayCollection
An ArrayCollection is a Collection implementation that wraps a regular PHP array.

Namespace

Doctrine\Common\Collections

Code

public function toArray() {
  return $this->elements;
}