src/Entity/PGenerationFichier.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PGenerationFichierRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassPGenerationFichierRepository::class)]
  6. class PGenerationFichier
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\ManyToOne]
  13.     private ?Users $user null;
  14.     #[ORM\Column(length255nullabletrue)]
  15.     private ?string $excelFileName null;
  16.     #[ORM\Column(length255nullabletrue)]
  17.     private ?string $txtFileName null;
  18.     #[ORM\Column(length255)]
  19.     private ?string $token null;
  20.     #[ORM\OneToOne(inversedBy'generationFichier'cascade: ['persist''remove'])]
  21.     private ?PMessengerStatut $messenger null;
  22.    
  23.     public function getId(): ?int
  24.     {
  25.         return $this->id;
  26.     }
  27.     public function getUser(): ?Users
  28.     {
  29.         return $this->user;
  30.     }
  31.     public function setUser(?Users $user): static
  32.     {
  33.         $this->user $user;
  34.         return $this;
  35.     }
  36.     public function getExcelFileName(): ?string
  37.     {
  38.         return $this->excelFileName;
  39.     }
  40.     public function setExcelFileName(?string $excelFileName): static
  41.     {
  42.         $this->excelFileName $excelFileName;
  43.         return $this;
  44.     }
  45.     public function getTxtFileName(): ?string
  46.     {
  47.         return $this->txtFileName;
  48.     }
  49.     public function setTxtFileName(?string $txtFileName): static
  50.     {
  51.         $this->txtFileName $txtFileName;
  52.         return $this;
  53.     }
  54.     public function getToken(): ?string
  55.     {
  56.         return $this->token;
  57.     }
  58.     public function setToken(string $token): static
  59.     {
  60.         $this->token $token;
  61.         return $this;
  62.     }
  63.     public function getMessenger(): ?PMessengerStatut
  64.     {
  65.         return $this->messenger;
  66.     }
  67.     public function setMessenger(?PMessengerStatut $messenger): static
  68.     {
  69.         $this->messenger $messenger;
  70.         return $this;
  71.     }
  72.     
  73. }