src/LocalDateRange.php
public function getIterator() : \Generator
    {
        for ($current = $this->startDate; $current->isBeforeOrEqualTo($this->endDate); $current = $current->plusDays(1)) {
            yield $current;
        }
    }
public function getIterator() : \Generator
    {
        for ($current = $this->startDate; $current->isBeforeOrEqualTo($this->endDate); $current = $current->plusDays(1)) {
            yield $current;
        }
    }
public function getIterator ( ) : \ Generator { for ( $ current = $ this -> startDate ; $ current -> isBeforeOrEqualTo ( $ this -> endDate ) ; $ current = $ current -> plusDays ( 1 ) ) { yield $ current ; } }
Returns an iterator for all the dates contained in this range.

@return LocalDate[]
Returns an iterator for all the dates contained in this range .