public function ScheduleData::addDateOff in Loft Data Grids 7.2
Add a date of no work (holiday, vacation, sick, etc).
Parameters
\DateTime $holiday:
Return value
$this
File
- vendor/
aklump/ loft_data_grids/ src/ AKlump/ LoftDataGrids/ ScheduleData.php, line 306
Class
- ScheduleData
- Class ScheduleData
Namespace
AKlump\LoftDataGridsCode
public function addDateOff(\DateTime $holiday) {
$this->datesOff[] = $holiday
->setTimezone(new \DateTimeZone('UTC'))
->setTime(0, 0, 0);
return $this;
}