<?php

namespace App\Entity;

use App\Repository\AmountRepository;
use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity(repositoryClass=AmountRepository::class)
 */
class Amount {
    /**
     * @ORM\Id()
     * @ORM\GeneratedValue()
     * @ORM\Column(type="integer")
     */
    private $id;
     /**
      * @ORM\Column(type="float", scale=2,nullable=true,options={"default":0})
     */
    private $total;
    /**
     * @ORM\Column(type="float", scale=2,nullable=true,options={"default":0})
     */
    private $earnings;
    /**
     * @ORM\Column(type="float", scale=2,nullable=true,options={"default":0})
     */
    private $minimum;
    /**
     * @ORM\Column(type="integer",nullable=true)
     */
    private $pourcentage;

    public function getId(): ?int
    {
        return $this->id;
    }

    /**
     * @return mixed
     */
    public function getTotal()
    {
        return $this->total;
    }

    /**
     * @param mixed $total
     */
    public function setTotal($total): void
    {
        $this->total = $total;
    }
     /**
     * @return mixed
     */
    public function getEarnings()
    {
        return $this->earnings;
    }

    /**
     * @param mixed $earnings
     */
    public function setEarnings($earnings): void
    {
        $this->earnings = $earnings;
    }

    /**
     * @return mixed
     */
    public function getMinimum()
    {
        return $this->minimum;
    }

    /**
     * @param mixed $minimum
     */
    public function setMinimum($minimum): void
    {
        $this->minimum = $minimum;
    }

     /**
     * @return mixed
     */
    public function getPourcentage()
    {
        return $this->pourcentage;
    }

    /**
     * @param mixed $pourcentage
     */
    public function setPourcentage($pourcentage): void
    {
        $this->pourcentage = $pourcentage;
    }
    
    
    

}