Battle-Cattle/BCUK-Bot-3

View on GitHub
src/main/java/com/expiredminotaur/bcukbot/justgiving/JustGivingProgressData.java

Summary

Maintainability
A
0 mins
Test Coverage
package com.expiredminotaur.bcukbot.justgiving;

public class JustGivingProgressData
{
    double total;
    double target;

    public double getTotal()
    {
        return total;
    }

    public void setTotal(double total)
    {
        this.total = total;
    }

    public double getTarget()
    {
        return target;
    }

    public void setTarget(double target)
    {
        this.target = target;
    }

    public double getPercentage()
    {
        return 100 * total / target;
    }

    public void setData(double total, double target)
    {
        this.total = total;
        this.target = target;
    }
}