public static function of(YearMonth $start, YearMonth $end) : YearMonthRange
    {
        if ($end->isBefore($start)) {
            throw new DateTimeException('The end year-month must not be before the start year-month.');
        }

        return new YearMonthRange($start, $end);
    }