src/YearMonthRange.php
public function getIterator() : \Generator
    {
        for ($current = $this->start; $current->isBeforeOrEqualTo($this->end); $current = $current->plusMonths(1)) {
            yield $current;
        }
    }
public function getIterator() : \Generator
    {
        for ($current = $this->start; $current->isBeforeOrEqualTo($this->end); $current = $current->plusMonths(1)) {
            yield $current;
        }
    }
public function getIterator ( ) : \ Generator { for ( $ current = $ this -> start ; $ current -> isBeforeOrEqualTo ( $ this -> end ) ; $ current = $ current -> plusMonths ( 1 ) ) { yield $ current ; } }
Returns an iterator for all the year-months contained in this range.

@return YearMonth[]
Returns an iterator for all the year - months contained in this range .