Returns the number of elements in the collection.
Implementation of the Countable interface.
Return value
integer The number of elements in the collection.
File
- drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Collections/ArrayCollection.php, line 312
Class
- ArrayCollection
- An ArrayCollection is a Collection implementation that wraps a regular PHP array.
Namespace
Doctrine\Common\Collections
Code
public function count() {
return count($this->_elements);
}