src/DateTime/TimeRange.php
public function encompasses(TimeRange $otherRange) : bool
    {
        return $this->start->isEarlierThanOrEqual($otherRange->start) && $this->end->isLaterThanOrEqual($otherRange->end);
    }
public function encompasses(TimeRange $otherRange) : bool
    {
        return $this->start->isEarlierThanOrEqual($otherRange->start) && $this->end->isLaterThanOrEqual($otherRange->end);
    }
public function encompasses ( TimeRange $ otherRange ) : bool { return $ this -> start -> isEarlierThanOrEqual ( $ otherRange -> start ) && $ this -> end -> isLaterThanOrEqual ( $ otherRange -> end ) ; }
Returns whether the supplied time range is encompassed by this
time range.

@param TimeRange $otherRange

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