package logic;

import java.io.Serializable;
import java.time.LocalDate;

@SuppressWarnings("serial")
public class Policy implements Serializable
{
	private LocalDate startDate;
	private double amount;
	private String policyName;
	private Customer theCustomer;

	public Policy (LocalDate startDate, double amount, 
	               String policyName, Customer theCustomer)
	{
		this.startDate = startDate;
		this.amount = amount;
		this.policyName = policyName;
		this.theCustomer = theCustomer;
	}

	public Customer getTheCustomer()
	{
		return this.theCustomer;
	}

	public void setTheCustomer(Customer theCustomer)
	{
		this.theCustomer = theCustomer;
	}


	public double getAmount()
	{
		return amount;
	}

	public String getPolicyName()
	{
		return policyName;
	}

	public LocalDate getStartDate()
	{
		return startDate;
	}

	public void setAmount(double d)
	{
		amount = d;
	}

	public void setPolicyName(String string)
	{
		policyName = string;
	}

	public void setStartDate(LocalDate date)
	{
		startDate = date;
	}
}