src/Entity/ReponseDemandeFormation.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use ApiPlatform\Core\Annotation\ApiResource;
  4. use App\Repository\ReponseDemandeFormationRepository;
  5. use Doctrine\DBAL\Types\Types;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassReponseDemandeFormationRepository::class)]
  8. #[ApiResource]
  9. class ReponseDemandeFormation
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  16.     private ?\DateTimeInterface $date null;
  17.     #[ORM\ManyToOne(inversedBy'reponseDemandeFormations')]
  18.     private ?Demmandeformation $demande null;
  19.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  20.     private ?string $reponse null;
  21.     #[ORM\Column(length255nullabletrue)]
  22.     private ?string $piece null;
  23.     #[ORM\ManyToOne(inversedBy'reponseDemandeFormations')]
  24.     private ?User $expediteur null;
  25.     #[ORM\ManyToOne(inversedBy'reponseDemandeFormationsdest')]
  26.     private ?User $destinataire null;
  27.     #[ORM\Column(nullabletrue)]
  28.     private ?bool $vupartner null;
  29.     #[ORM\Column(nullabletrue)]
  30.     private ?bool $vuadmin null;
  31.     public function getId(): ?int
  32.     {
  33.         return $this->id;
  34.     }
  35.     public function getDate(): ?\DateTimeInterface
  36.     {
  37.         return $this->date;
  38.     }
  39.     public function setDate(?\DateTimeInterface $date): self
  40.     {
  41.         $this->date $date;
  42.         return $this;
  43.     }
  44.     public function getDemande(): ?Demmandeformation
  45.     {
  46.         return $this->demande;
  47.     }
  48.     public function setDemande(?Demmandeformation $demande): self
  49.     {
  50.         $this->demande $demande;
  51.         return $this;
  52.     }
  53.     public function getReponse(): ?string
  54.     {
  55.         return $this->reponse;
  56.     }
  57.     public function setReponse(?string $reponse): self
  58.     {
  59.         $this->reponse $reponse;
  60.         return $this;
  61.     }
  62.     public function getPiece(): ?string
  63.     {
  64.         return $this->piece;
  65.     }
  66.     public function setPiece(?string $piece): self
  67.     {
  68.         $this->piece $piece;
  69.         return $this;
  70.     }
  71.     public function getExpediteur(): ?User
  72.     {
  73.         return $this->expediteur;
  74.     }
  75.     public function setExpediteur(?User $expediteur): self
  76.     {
  77.         $this->expediteur $expediteur;
  78.         return $this;
  79.     }
  80.     public function getDestinataire(): ?User
  81.     {
  82.         return $this->destinataire;
  83.     }
  84.     public function setDestinataire(?User $destinataire): self
  85.     {
  86.         $this->destinataire $destinataire;
  87.         return $this;
  88.     }
  89.     public function isVupartner(): ?bool
  90.     {
  91.         return $this->vupartner;
  92.     }
  93.     public function setVupartner(?bool $vupartner): self
  94.     {
  95.         $this->vupartner $vupartner;
  96.         return $this;
  97.     }
  98.     public function isVuadmin(): ?bool
  99.     {
  100.         return $this->vuadmin;
  101.     }
  102.     public function setVuadmin(?bool $vuadmin): self
  103.     {
  104.         $this->vuadmin $vuadmin;
  105.         return $this;
  106.     }
  107. }