<?php
namespace App\Entity;
use App\Repository\TarifDegressifRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=TarifDegressifRepository::class)
*/
class TarifDegressif
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $nbrPers;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $reduction;
/**
* @ORM\ManyToOne(targetEntity=Product::class, inversedBy="tarifDegressifs")
*/
private $Product;
public function getId(): ?int
{
return $this->id;
}
public function getNbrPers(): ?int
{
return $this->nbrPers;
}
public function setNbrPers(?int $nbrPers): self
{
$this->nbrPers = $nbrPers;
return $this;
}
public function getReduction(): ?int
{
return $this->reduction;
}
public function setReduction(?int $reduction): self
{
$this->reduction = $reduction;
return $this;
}
public function getProduct(): ?Product
{
return $this->Product;
}
public function setProduct(?Product $Product): self
{
$this->Product = $Product;
return $this;
}
}