private function fillDayPeriods($startDate, $endDate)
    {
        while (($startDate->isEarlier($endDate) || $startDate == $endDate)) {
            $this->addSubperiod(new Day($startDate));
            $startDate = $startDate->addDay(1);
        }
    }
private function fillDayPeriods($startDate, $endDate)
    {
        while (($startDate->isEarlier($endDate) || $startDate == $endDate)) {
            $this->addSubperiod(new Day($startDate));
            $startDate = $startDate->addDay(1);
        }
    }
private function fillDayPeriods ( $ startDate , $ endDate ) { while ( ( $ startDate -> isEarlier ( $ endDate ) || $ startDate == $ endDate ) ) { $ this -> addSubperiod ( new Day ( $ startDate ) ) ; $ startDate = $ startDate -> addDay ( 1 ) ; } }
Fills the periods from startDate to endDate with days

@param Date $startDate
@param Date $endDate
Fills the periods from startDate to endDate with days