<?php
namespace App\Entity;
use ApiPlatform\Core\Annotation\ApiResource;
use App\Repository\ReponseDemandeFormationRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: ReponseDemandeFormationRepository::class)]
#[ApiResource]
class ReponseDemandeFormation
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
private ?\DateTimeInterface $date = null;
#[ORM\ManyToOne(inversedBy: 'reponseDemandeFormations')]
private ?Demmandeformation $demande = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $reponse = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $piece = null;
#[ORM\ManyToOne(inversedBy: 'reponseDemandeFormations')]
private ?User $expediteur = null;
#[ORM\ManyToOne(inversedBy: 'reponseDemandeFormationsdest')]
private ?User $destinataire = null;
#[ORM\Column(nullable: true)]
private ?bool $vupartner = null;
#[ORM\Column(nullable: true)]
private ?bool $vuadmin = null;
public function getId(): ?int
{
return $this->id;
}
public function getDate(): ?\DateTimeInterface
{
return $this->date;
}
public function setDate(?\DateTimeInterface $date): self
{
$this->date = $date;
return $this;
}
public function getDemande(): ?Demmandeformation
{
return $this->demande;
}
public function setDemande(?Demmandeformation $demande): self
{
$this->demande = $demande;
return $this;
}
public function getReponse(): ?string
{
return $this->reponse;
}
public function setReponse(?string $reponse): self
{
$this->reponse = $reponse;
return $this;
}
public function getPiece(): ?string
{
return $this->piece;
}
public function setPiece(?string $piece): self
{
$this->piece = $piece;
return $this;
}
public function getExpediteur(): ?User
{
return $this->expediteur;
}
public function setExpediteur(?User $expediteur): self
{
$this->expediteur = $expediteur;
return $this;
}
public function getDestinataire(): ?User
{
return $this->destinataire;
}
public function setDestinataire(?User $destinataire): self
{
$this->destinataire = $destinataire;
return $this;
}
public function isVupartner(): ?bool
{
return $this->vupartner;
}
public function setVupartner(?bool $vupartner): self
{
$this->vupartner = $vupartner;
return $this;
}
public function isVuadmin(): ?bool
{
return $this->vuadmin;
}
public function setVuadmin(?bool $vuadmin): self
{
$this->vuadmin = $vuadmin;
return $this;
}
}