<?php
namespace App\Entity\System;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\System\DiscountRepository")
*
* @ORM\Table(name="ps_discount")
*/
class Discount
{
/**
* @var int
*
* @ORM\Id
*
* @ORM\GeneratedValue(strategy="AUTO")
*
* @ORM\Column(type="integer", name="id_discount")
*/
private int $id;
/**
* @var int
*
* @ORM\Column(type="integer")
*/
private int $quantity;
/**
* @var float
*
* @ORM\Column(type="float", precision=20, scale=6)
*/
private float $reduction;
public function getId(): int
{
return $this->id;
}
public function getQuantity(): int
{
return $this->quantity;
}
public function setQuantity(int $quantity): Discount
{
$this->quantity = $quantity;
return $this;
}
public function getReduction(): float
{
return $this->reduction;
}
public function setReduction(float $reduction): Discount
{
$this->reduction = $reduction;
return $this;
}
}