src/Entity/PaiementDette.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PaiementDetteRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassPaiementDetteRepository::class)]
  6. class PaiementDette
  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 $montantPaye null;
  17.     #[ORM\Column]
  18.     private ?float $montantRestantAvant null;
  19.     #[ORM\Column]
  20.     private ?float $montantRestantApres null;
  21.     #[ORM\Column(length255)]
  22.     private ?string $modePaiement null;
  23.     #[ORM\Column(type'datetime')]
  24.     private ?\DateTimeInterface $datePaiement 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 $typePaiement 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.     #[ORM\ManyToOne(targetEntityBoutique::class)]
  37.     private ?Boutique $boutique null;
  38.     public function __construct()
  39.     {
  40.         $this->datePaiement = new \DateTime();
  41.         $this->createdAt = new \DateTime();
  42.     }
  43.     public function getId(): ?int
  44.     {
  45.         return $this->id;
  46.     }
  47.     public function getClient(): ?Client
  48.     {
  49.         return $this->client;
  50.     }
  51.     public function setClient(?Client $client): static
  52.     {
  53.         $this->client $client;
  54.         return $this;
  55.     }
  56.     public function getMontantPaye(): ?float
  57.     {
  58.         return $this->montantPaye;
  59.     }
  60.     public function setMontantPaye(float $montantPaye): static
  61.     {
  62.         $this->montantPaye $montantPaye;
  63.         return $this;
  64.     }
  65.     public function getMontantRestantAvant(): ?float
  66.     {
  67.         return $this->montantRestantAvant;
  68.     }
  69.     public function setMontantRestantAvant(float $montantRestantAvant): static
  70.     {
  71.         $this->montantRestantAvant $montantRestantAvant;
  72.         return $this;
  73.     }
  74.     public function getMontantRestantApres(): ?float
  75.     {
  76.         return $this->montantRestantApres;
  77.     }
  78.     public function setMontantRestantApres(float $montantRestantApres): static
  79.     {
  80.         $this->montantRestantApres $montantRestantApres;
  81.         return $this;
  82.     }
  83.     public function getModePaiement(): ?string
  84.     {
  85.         return $this->modePaiement;
  86.     }
  87.     public function setModePaiement(string $modePaiement): static
  88.     {
  89.         $this->modePaiement $modePaiement;
  90.         return $this;
  91.     }
  92.     public function getDatePaiement(): ?\DateTimeInterface
  93.     {
  94.         return $this->datePaiement;
  95.     }
  96.     public function setDatePaiement(\DateTimeInterface $datePaiement): static
  97.     {
  98.         $this->datePaiement $datePaiement;
  99.         return $this;
  100.     }
  101.     public function getCommentaire(): ?string
  102.     {
  103.         return $this->commentaire;
  104.     }
  105.     public function setCommentaire(?string $commentaire): static
  106.     {
  107.         $this->commentaire $commentaire;
  108.         return $this;
  109.     }
  110.     public function getNumeroFacture(): ?string
  111.     {
  112.         return $this->numeroFacture;
  113.     }
  114.     public function setNumeroFacture(?string $numeroFacture): static
  115.     {
  116.         $this->numeroFacture $numeroFacture;
  117.         return $this;
  118.     }
  119.     public function getTypePaiement(): ?string
  120.     {
  121.         return $this->typePaiement;
  122.     }
  123.     public function setTypePaiement(?string $typePaiement): static
  124.     {
  125.         $this->typePaiement $typePaiement;
  126.         return $this;
  127.     }
  128.     public function getUtilisateur(): ?User
  129.     {
  130.         return $this->utilisateur;
  131.     }
  132.     public function setUtilisateur(?User $utilisateur): static
  133.     {
  134.         $this->utilisateur $utilisateur;
  135.         return $this;
  136.     }
  137.     public function getCreatedAt(): ?\DateTimeInterface
  138.     {
  139.         return $this->createdAt;
  140.     }
  141.     public function setCreatedAt(\DateTimeInterface $createdAt): static
  142.     {
  143.         $this->createdAt $createdAt;
  144.         return $this;
  145.     }
  146.     public function getBoutique(): ?Boutique
  147.     {
  148.         return $this->boutique;
  149.     }
  150.     public function setBoutique(?Boutique $boutique): static
  151.     {
  152.         $this->boutique $boutique;
  153.         return $this;
  154.     }
  155. }