src/Entity/PMessengerStatut.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PMessengerStatutRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassPMessengerStatutRepository::class)]
  7. class PMessengerStatut
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(length255nullabletrue)]
  14.     private ?string $classe null;
  15.     #[ORM\Column(length255nullabletrue)]
  16.     private ?string $statut null;
  17.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  18.     private ?string $message null;
  19.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  20.     private ?\DateTimeInterface $created null;
  21.     #[ORM\ManyToOne]
  22.     private ?Users $user null;
  23.     #[ORM\OneToOne(mappedBy'messenger'cascade: ['persist''remove'])]
  24.     private ?PGenerationFichier $generationFichier null;
  25.     public function __construct()
  26.     {
  27.         $this->created = new \DateTime();
  28.     }
  29.     public function getId(): ?int
  30.     {
  31.         return $this->id;
  32.     }
  33.     public function getClasse(): ?string
  34.     {
  35.         return $this->classe;
  36.     }
  37.     public function setClasse(?string $classe): static
  38.     {
  39.         $this->classe $classe;
  40.         return $this;
  41.     }
  42.     public function getStatut(): ?string
  43.     {
  44.         return $this->statut;
  45.     }
  46.     public function setStatut(?string $statut): static
  47.     {
  48.         $this->statut $statut;
  49.         return $this;
  50.     }
  51.     public function getMessage(): ?string
  52.     {
  53.         return $this->message;
  54.     }
  55.     public function setMessage(?string $message): static
  56.     {
  57.         $this->message $message;
  58.         return $this;
  59.     }
  60.     public function getCreated(): ?\DateTimeInterface
  61.     {
  62.         return $this->created;
  63.     }
  64.     public function setCreated(?\DateTimeInterface $created): static
  65.     {
  66.         $this->created $created;
  67.         return $this;
  68.     }
  69.     public function getUser(): ?Users
  70.     {
  71.         return $this->user;
  72.     }
  73.     public function setUser(?Users $user): static
  74.     {
  75.         $this->user $user;
  76.         return $this;
  77.     }
  78.     public function getGenerationFichier(): ?PGenerationFichier
  79.     {
  80.         return $this->generationFichier;
  81.     }
  82.     public function setGenerationFichier(?PGenerationFichier $generationFichier): static
  83.     {
  84.         // unset the owning side of the relation if necessary
  85.         if ($generationFichier === null && $this->generationFichier !== null) {
  86.             $this->generationFichier->setMessenger(null);
  87.         }
  88.         // set the owning side of the relation if necessary
  89.         if ($generationFichier !== null && $generationFichier->getMessenger() !== $this) {
  90.             $generationFichier->setMessenger($this);
  91.         }
  92.         $this->generationFichier $generationFichier;
  93.         return $this;
  94.     }
  95. }