You are here

public function ArrayObject::getIterator in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/zendframework/zend-stdlib/src/ArrayObject.php \Zend\Stdlib\ArrayObject::getIterator()

Create a new iterator from an ArrayObject instance

Return value

\Iterator

File

vendor/zendframework/zend-stdlib/src/ArrayObject.php, line 226

Class

ArrayObject
Custom framework ArrayObject implementation

Namespace

Zend\Stdlib

Code

public function getIterator() {
  $class = $this->iteratorClass;
  return new $class($this->storage);
}