114 lines
2.3 KiB
PHP
114 lines
2.3 KiB
PHP
<?php
|
|
|
|
namespace App\Entity;
|
|
|
|
use App\Repository\ReductionsRepository;
|
|
use Doctrine\Common\Collections\ArrayCollection;
|
|
use Doctrine\Common\Collections\Collection;
|
|
use Doctrine\DBAL\Types\Types;
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
|
#[ORM\Entity(repositoryClass: ReductionsRepository::class)]
|
|
class Reductions
|
|
{
|
|
#[ORM\Id]
|
|
#[ORM\GeneratedValue]
|
|
#[ORM\Column]
|
|
private ?int $id = null;
|
|
|
|
#[ORM\Column]
|
|
private ?int $pourcentage = null;
|
|
|
|
#[ORM\Column]
|
|
private ?int $montant_min = null;
|
|
|
|
#[ORM\Column]
|
|
private ?bool $actif = null;
|
|
#[ORM\Column(type: Types::DATETIME_MUTABLE)]
|
|
private ?\DateTimeInterface $DateDebut = null;
|
|
|
|
#[ORM\Column(type: Types::DATETIME_MUTABLE)]
|
|
private ?\DateTimeInterface $DateFin = null;
|
|
|
|
|
|
#[ORM\ManyToOne(targetEntity: Clients::class, inversedBy: 'reductions')]
|
|
#[ORM\JoinColumn(nullable: false)]
|
|
private ?Clients $client = null;
|
|
|
|
public function getId(): ?int
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
public function getDateDebut(): ?\DateTimeInterface
|
|
{
|
|
return $this->DateDebut;
|
|
}
|
|
|
|
public function setDateDebut(\DateTimeInterface $DateDebut): static
|
|
{
|
|
$this->DateDebut = $DateDebut;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getDateFin(): ?\DateTimeInterface
|
|
{
|
|
return $this->DateFin;
|
|
}
|
|
|
|
public function setDateFin(\DateTimeInterface $DateFin): static
|
|
{
|
|
$this->DateFin = $DateFin;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getPourcentage(): ?int
|
|
{
|
|
return $this->pourcentage;
|
|
}
|
|
|
|
public function setPourcentage(int $pourcentage): static
|
|
{
|
|
$this->pourcentage = $pourcentage;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getMontantMin(): ?int
|
|
{
|
|
return $this->montant_min;
|
|
}
|
|
|
|
public function setMontantMin(int $montant_min): static
|
|
{
|
|
$this->montant_min = $montant_min;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function isActif(): ?bool
|
|
{
|
|
return $this->actif;
|
|
}
|
|
|
|
public function setActif(bool $actif): static
|
|
{
|
|
$this->actif = $actif;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getClient(): ?Clients
|
|
{
|
|
return $this->client;
|
|
}
|
|
|
|
public function setClient(?Clients $client): static
|
|
{
|
|
$this->client = $client;
|
|
return $this;
|
|
}
|
|
}
|