package de.deadlocker8.budgetmaster.repeating.modifier;

import org.joda.time.DateTime;

import javax.persistence.Entity;

@Entity
public class RepeatingModifierMonths extends RepeatingModifier
{
	public RepeatingModifierMonths(int numberOfMonths)
	{
		super(numberOfMonths, "repeating.modifier.months");
	}

	public RepeatingModifierMonths() {}

	@Override
	public DateTime getNextDate(DateTime lastDate)
	{
		return lastDate.plusMonths(super.quantity);
	}
}
