src/AKlump/LoftDataGrids/ScheduleData.php
protected function avoidHolidaysAndWeekdaysOff()
    {
        while (in_array($this->date, $this->datesOff)
            || in_array($this->date->format('D'), $this->weekdaysOff)) {
            $this->stats['dates off'][] = $this->date->format($this->getPageIdFormat());
            $this->date->add(new \DateInterval('P1D'));
        }
    }
protected function avoidHolidaysAndWeekdaysOff()
    {
        while (in_array($this->date, $this->datesOff)
            || in_array($this->date->format('D'), $this->weekdaysOff)) {
            $this->stats['dates off'][] = $this->date->format($this->getPageIdFormat());
            $this->date->add(new \DateInterval('P1D'));
        }
    }
protected function avoidHolidaysAndWeekdaysOff ( ) { while ( in_array ( $ this -> date , $ this -> datesOff ) || in_array ( $ this -> date -> format ( 'D' ) , $ this -> weekdaysOff ) ) { $ this -> stats [ 'dates off' ] [ ] = $ this -> date -> format ( $ this -> getPageIdFormat ( ) ) ; $ this -> date -> add ( new \ DateInterval ( 'P1D' ) ) ; } }
Increment the internal date until it falls on neither a holiday nor a
weekday that can't be worked.
Increment the internal date until it falls on neither a holiday nor a weekday that can t be worked .