<?php
namespace App\Entity;
use App\Repository\ReponsesAORepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: ReponsesAORepository::class)]
class ReponsesAO
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'integer')]
private $TJM_propose;
#[ORM\Column(type: 'date', nullable: true)]
private $date_reponse;
#[ORM\Column(type: 'boolean')]
private $statut;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $CV;
#[ORM\ManyToOne(targetEntity: Consultants::class, inversedBy: 'reponsesAOs')]
#[ORM\JoinColumn(nullable: false)]
private $consultant;
#[ORM\ManyToOne(targetEntity: Missions::class, inversedBy: 'reponsesAOs')]
#[ORM\JoinColumn(nullable: false)]
private $mission;
#[ORM\Column(type: 'text', nullable: true)]
private $motivation;
public function getId(): ?int
{
return $this->id;
}
public function getTJMPropose(): ?int
{
return $this->TJM_propose;
}
public function setTJMPropose(int $TJM_propose): self
{
$this->TJM_propose = $TJM_propose;
return $this;
}
public function getDateReponse(): ?\DateTimeInterface
{
return $this->date_reponse;
}
public function setDateReponse(\DateTimeInterface $date_reponse): self
{
$this->date_reponse = $date_reponse;
return $this;
}
public function isStatut(): ?bool
{
return $this->statut;
}
public function setStatut(bool $statut): self
{
$this->statut = $statut;
return $this;
}
public function getCV(): ?string
{
return $this->CV;
}
public function setCV(?string $CV): self
{
$this->CV = $CV;
return $this;
}
public function getConsultant(): ?Consultants
{
return $this->consultant;
}
public function setConsultant(?Consultants $consultant): self
{
$this->consultant = $consultant;
return $this;
}
public function getMission(): ?Missions
{
return $this->mission;
}
public function setMission(?Missions $mission): self
{
$this->mission = $mission;
return $this;
}
public function getMotivation(): ?string
{
return $this->motivation;
}
public function setMotivation(?string $motivation): self
{
$this->motivation = $motivation;
return $this;
}
}