src/ArrayProperty.php
public function getIterator(): Traversable {
    if($this->iterator !== null) {
      return $this->iterator->invoke($this->obj);
    }

    throw new NoSuchPropertyException($this->name);
  }
public function getIterator(): Traversable {
    if($this->iterator !== null) {
      return $this->iterator->invoke($this->obj);
    }

    throw new NoSuchPropertyException($this->name);
  }
public function getIterator ( ) : Traversable { if ( $ this -> iterator !== null ) { return $ this -> iterator -> invoke ( $ this -> obj ) ; } throw new NoSuchPropertyException ( $ this -> name ) ; }
Returns the iterator for the array

@throws  NoSuchPropertyException  If there is no iterator for the array

@return  Traversable  The iterator
Returns the iterator for the array