public function encompasses(DateTimeRange $otherRange) : bool
    {
        return $this->start->comesBeforeOrEqual($otherRange->start) && $this->end->comesAfterOrEqual($otherRange->end);
    }
public function encompasses(DateTimeRange $otherRange) : bool
    {
        return $this->start->comesBeforeOrEqual($otherRange->start) && $this->end->comesAfterOrEqual($otherRange->end);
    }
public function encompasses ( DateTimeRange $ otherRange ) : bool { return $ this -> start -> comesBeforeOrEqual ( $ otherRange -> start ) && $ this -> end -> comesAfterOrEqual ( $ otherRange -> end ) ; }
Returns whether the supplied date time range is encompassed by this
date time range.

@param DateTimeRange $otherRange

@return bool
Returns whether the supplied date time range is encompassed by this date time range .