src/Entity/FactureDocument.php line 9

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\FactureDocumentRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassFactureDocumentRepository::class)]
  6. class FactureDocument
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\ManyToOne(inversedBy'factureDocuments')]
  13.     private ?Facture $facture null;
  14.     #[ORM\Column(length255)]
  15.     private ?string $nameFile null;
  16.     public function getId(): ?int
  17.     {
  18.         return $this->id;
  19.     }
  20.     public function getFacture(): ?Facture
  21.     {
  22.         return $this->facture;
  23.     }
  24.     public function setFacture(?Facture $facture): self
  25.     {
  26.         $this->facture $facture;
  27.         return $this;
  28.     }
  29.     public function getNameFile(): ?string
  30.     {
  31.         return $this->nameFile;
  32.     }
  33.     public function setNameFile(string $nameFile): self
  34.     {
  35.         $this->nameFile $nameFile;
  36.         return $this;
  37.     }
  38. }