isYearly() || $this->isMonthly(); } public function getEndAtInterval(): string { return match ($this) { self::YEARLY => '+1 year midnight', self::MONTHLY => '+1 month midnight', self::ONESHOT => '', }; } }