src/Entity/Facture.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\FactureRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassFactureRepository::class)]
  6. class Facture
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\Column(length15)]
  13.     private ?string $status null;
  14.     #[ORM\Column(nullabletrue)]
  15.     private ?int $montantTotal null;
  16.     #[ORM\Column(nullabletrue)]
  17.     private ?int $montantRestant null;
  18.     #[ORM\Column]
  19.     private ?\DateTimeImmutable $createdAt null;
  20.     #[ORM\OneToOne(inversedBy'facture'cascade: ['persist''remove'])]
  21.     #[ORM\JoinColumn(nullablefalse)]
  22.     private ?Payement $payement null;
  23.     public function getId(): ?int
  24.     {
  25.         return $this->id;
  26.     }
  27.     public function getStatus(): ?string
  28.     {
  29.         return $this->status;
  30.     }
  31.     public function setStatus(string $status): static
  32.     {
  33.         $this->status $status;
  34.         return $this;
  35.     }
  36.     public function getMontantTotal(): ?int
  37.     {
  38.         return $this->montantTotal;
  39.     }
  40.     public function setMontantTotal(?int $montantTotal): static
  41.     {
  42.         $this->montantTotal $montantTotal;
  43.         return $this;
  44.     }
  45.     public function getMontantRestant(): ?int
  46.     {
  47.         return $this->montantRestant;
  48.     }
  49.     public function setMontantRestant(?int $montantRestant): static
  50.     {
  51.         $this->montantRestant $montantRestant;
  52.         return $this;
  53.     }
  54.     public function getCreatedAt(): ?\DateTimeImmutable
  55.     {
  56.         return $this->createdAt;
  57.     }
  58.     public function setCreatedAt(\DateTimeImmutable $createdAt): static
  59.     {
  60.         $this->createdAt $createdAt;
  61.         return $this;
  62.     }
  63.     public function getPayement(): ?Payement
  64.     {
  65.         return $this->payement;
  66.     }
  67.     public function setPayement(Payement $payement): static
  68.     {
  69.         $this->payement $payement;
  70.         return $this;
  71.     }
  72. }