You are here

public function CsvFileObject::count in Commerce Pricelist 8.2

File

src/CsvFileObject.php, line 110

Class

CsvFileObject
Defines a wrapper around CSV data in a file.

Namespace

Drupal\commerce_pricelist

Code

public function count() {
  $count = iterator_count($this);

  // The iterator_count() sets the pointer to the last element.
  $this
    ->rewind();
  return $count;
}