src/Entity/Facture.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\FactureRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassFactureRepository::class)]
  7. class Facture
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  14.     private ?\DateTimeInterface $date null;
  15.     #[ORM\Column(length255nullabletrue)]
  16.     private ?string $facture null;
  17.     #[ORM\ManyToOne(inversedBy'factures')]
  18.     private ?Commande $commande null;
  19.     #[ORM\Column(length255nullabletrue)]
  20.     private ?string $numero null;
  21.     public function getId(): ?int
  22.     {
  23.         return $this->id;
  24.     }
  25.     public function getDate(): ?\DateTimeInterface
  26.     {
  27.         return $this->date;
  28.     }
  29.     public function setDate(?\DateTimeInterface $date): self
  30.     {
  31.         $this->date $date;
  32.         return $this;
  33.     }
  34.     public function getFacture(): ?string
  35.     {
  36.         return $this->facture;
  37.     }
  38.     public function setFacture(?string $facture): self
  39.     {
  40.         $this->facture $facture;
  41.         return $this;
  42.     }
  43.     public function getCommande(): ?Commande
  44.     {
  45.         return $this->commande;
  46.     }
  47.     public function setCommande(?Commande $commande): self
  48.     {
  49.         $this->commande $commande;
  50.         return $this;
  51.     }
  52.     public function getNumero(): ?string
  53.     {
  54.         return $this->numero;
  55.     }
  56.     public function setNumero(?string $numero): self
  57.     {
  58.         $this->numero $numero;
  59.         return $this;
  60.     }
  61. }