public function setTimeRange(DateTimeInterface $start = null, DateTimeInterface $end = null)
    {
        if (!$start) {
            $start = new DateTimeImmutable(Settings::$minDate);
        }
        if (!$end) {
            $end = new DateTimeImmutable(Settings::$maxDate);
        }
        $this->start = $start;
        $this->end = $end;
    }
public function setTimeRange(DateTimeInterface $start = null, DateTimeInterface $end = null)
    {
        if (!$start) {
            $start = new DateTimeImmutable(Settings::$minDate);
        }
        if (!$end) {
            $end = new DateTimeImmutable(Settings::$maxDate);
        }
        $this->start = $start;
        $this->end = $end;
    }
public function setTimeRange ( DateTimeInterface $ start = null , DateTimeInterface $ end = null ) { if ( ! $ start ) { $ start = new DateTimeImmutable ( Settings :: $ minDate ) ; } if ( ! $ end ) { $ end = new DateTimeImmutable ( Settings :: $ maxDate ) ; } $ this -> start = $ start ; $ this -> end = $ end ; }
Sets the time range.

Any freebusy object falling outside of this time range will be ignored.

@param DateTimeInterface $start
@param DateTimeInterface $end
Sets the time range .