public static function easterDays($year, $method)
    {
        if ($method == CAL_EASTER_ALWAYS_JULIAN ||
            $method == CAL_EASTER_ROMAN && $year <= 1582 ||
            $year <= 1752 && $method != CAL_EASTER_ROMAN && $method != CAL_EASTER_ALWAYS_GREGORIAN
        ) {
            return self::$julian_calendar->easterDays($year);
        } else {
            return self::$gregorian_calendar->easterDays($year);
        }
    }
public static function easterDays($year, $method)
    {
        if ($method == CAL_EASTER_ALWAYS_JULIAN ||
            $method == CAL_EASTER_ROMAN && $year <= 1582 ||
            $year <= 1752 && $method != CAL_EASTER_ROMAN && $method != CAL_EASTER_ALWAYS_GREGORIAN
        ) {
            return self::$julian_calendar->easterDays($year);
        } else {
            return self::$gregorian_calendar->easterDays($year);
        }
    }
public static function easterDays ( $ year , $ method ) { if ( $ method == CAL_EASTER_ALWAYS_JULIAN || $ method == CAL_EASTER_ROMAN && $ year <= 1582 || $ year <= 1752 && $ method != CAL_EASTER_ROMAN && $ method != CAL_EASTER_ALWAYS_GREGORIAN ) { return self :: $ julian_calendar -> easterDays ( $ year ) ; } else { return self :: $ gregorian_calendar -> easterDays ( $ year ) ; } }
Get number of days after March 21 on which Easter falls for a given year.

Shim implementation of easter_days()

@link https://php.net/easter_days

@param int $year
@param int $method Use the Julian or Gregorian calendar

@return int
Get number of days after March 21 on which Easter falls for a given year .