src/AKlump/LoftDataGrids/ScheduleData.php
public function addWeekdayOff($value)
    {
        $value = ucfirst(strtolower($value));
        if (!(date_create_from_format('D', $value))) {
            throw new \InvalidArgumentException("Bad format of day of week.");
        }
        $this->weekdaysOff[] = $value;

        return $this;
    }
public function addWeekdayOff($value)
    {
        $value = ucfirst(strtolower($value));
        if (!(date_create_from_format('D', $value))) {
            throw new \InvalidArgumentException("Bad format of day of week.");
        }
        $this->weekdaysOff[] = $value;

        return $this;
    }
public function addWeekdayOff ( $ value ) { $ value = ucfirst ( strtolower ( $ value ) ) ; if ( ! ( date_create_from_format ( 'D' , $ value ) ) ) { throw new \ InvalidArgumentException ( "Bad format of day of week." ) ; } $ this -> weekdaysOff [ ] = $ value ; return $ this ; }
Mark a single weekday as unworked.

@param string $value Three char word ,e.g. 'Sun', 'Mon'...

@return $this
Mark a single weekday as unworked .