src/Entity/RetraitDette.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\RetraitDetteRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassRetraitDetteRepository::class)]
  6. class RetraitDette
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\ManyToOne(targetEntityClient::class)]
  13.     #[ORM\JoinColumn(nullabletrue)]
  14.     private ?Client $client null;
  15.     #[ORM\Column]
  16.     private ?float $montantRetire null;
  17.     #[ORM\Column]
  18.     private ?float $montantRestantAvant null;
  19.     #[ORM\Column]
  20.     private ?float $montantRestantApres null;
  21.     #[ORM\Column(length255)]
  22.     private ?string $motifRetrait null;
  23.     #[ORM\Column(type'datetime')]
  24.     private ?\DateTimeInterface $dateRetrait null;
  25.     #[ORM\Column(type'text'nullabletrue)]
  26.     private ?string $commentaire null;
  27.     #[ORM\Column(length255nullabletrue)]
  28.     private ?string $numeroFacture null;
  29.     #[ORM\Column(length255nullabletrue)]
  30.     private ?string $typeRetrait null;
  31.     #[ORM\ManyToOne(targetEntityUser::class)]
  32.     #[ORM\JoinColumn(nullablefalse)]
  33.     private ?User $utilisateur null;
  34.     #[ORM\Column(type'datetime')]
  35.     private ?\DateTimeInterface $createdAt null;
  36.     public function __construct()
  37.     {
  38.         $this->dateRetrait = new \DateTime();
  39.         $this->createdAt = new \DateTime();
  40.     }
  41.     public function getId(): ?int
  42.     {
  43.         return $this->id;
  44.     }
  45.     public function getClient(): ?Client
  46.     {
  47.         return $this->client;
  48.     }
  49.     public function setClient(?Client $client): static
  50.     {
  51.         $this->client $client;
  52.         return $this;
  53.     }
  54.     public function getMontantRetire(): ?float
  55.     {
  56.         return $this->montantRetire;
  57.     }
  58.     public function setMontantRetire(float $montantRetire): static
  59.     {
  60.         $this->montantRetire $montantRetire;
  61.         return $this;
  62.     }
  63.     public function getMontantRestantAvant(): ?float
  64.     {
  65.         return $this->montantRestantAvant;
  66.     }
  67.     public function setMontantRestantAvant(float $montantRestantAvant): static
  68.     {
  69.         $this->montantRestantAvant $montantRestantAvant;
  70.         return $this;
  71.     }
  72.     public function getMontantRestantApres(): ?float
  73.     {
  74.         return $this->montantRestantApres;
  75.     }
  76.     public function setMontantRestantApres(float $montantRestantApres): static
  77.     {
  78.         $this->montantRestantApres $montantRestantApres;
  79.         return $this;
  80.     }
  81.     public function getMotifRetrait(): ?string
  82.     {
  83.         return $this->motifRetrait;
  84.     }
  85.     public function setMotifRetrait(string $motifRetrait): static
  86.     {
  87.         $this->motifRetrait $motifRetrait;
  88.         return $this;
  89.     }
  90.     public function getDateRetrait(): ?\DateTimeInterface
  91.     {
  92.         return $this->dateRetrait;
  93.     }
  94.     public function setDateRetrait(\DateTimeInterface $dateRetrait): static
  95.     {
  96.         $this->dateRetrait $dateRetrait;
  97.         return $this;
  98.     }
  99.     public function getCommentaire(): ?string
  100.     {
  101.         return $this->commentaire;
  102.     }
  103.     public function setCommentaire(?string $commentaire): static
  104.     {
  105.         $this->commentaire $commentaire;
  106.         return $this;
  107.     }
  108.     public function getNumeroFacture(): ?string
  109.     {
  110.         return $this->numeroFacture;
  111.     }
  112.     public function setNumeroFacture(?string $numeroFacture): static
  113.     {
  114.         $this->numeroFacture $numeroFacture;
  115.         return $this;
  116.     }
  117.     public function getTypeRetrait(): ?string
  118.     {
  119.         return $this->typeRetrait;
  120.     }
  121.     public function setTypeRetrait(?string $typeRetrait): static
  122.     {
  123.         $this->typeRetrait $typeRetrait;
  124.         return $this;
  125.     }
  126.     public function getUtilisateur(): ?User
  127.     {
  128.         return $this->utilisateur;
  129.     }
  130.     public function setUtilisateur(?User $utilisateur): static
  131.     {
  132.         $this->utilisateur $utilisateur;
  133.         return $this;
  134.     }
  135.     public function getCreatedAt(): ?\DateTimeInterface
  136.     {
  137.         return $this->createdAt;
  138.     }
  139.     public function setCreatedAt(\DateTimeInterface $createdAt): static
  140.     {
  141.         $this->createdAt $createdAt;
  142.         return $this;
  143.     }
  144. }