You are here

public function Group::getIterator in Googalytics - Google Analytics 8

Retrieve an external iterator.

@link http://php.net/manual/en/iteratoraggregate.getiterator.php

Return value

\ArrayIterator An iterator for the group's commands.

File

src/AnalyticsCommand/Group.php, line 88

Class

Group
Class Drupal\ga\AnalyticsCommand\Group.

Namespace

Drupal\ga\AnalyticsCommand

Code

public function getIterator() {
  return new \ArrayIterator($this->commands);
}