<?php
namespace App\Entity;
use ApiPlatform\Core\Annotation\ApiResource;
use App\Repository\DemandeprofilRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: DemandeprofilRepository::class)]
#[ApiResource]
class Demandeprofil
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
private ?\DateTimeInterface $dateDemande = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $description = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $nbreanneeexperience = null;
#[ORM\ManyToOne(inversedBy: 'demandeprofils')]
private ?User $user = null;
#[ORM\Column(nullable: true)]
private ?bool $statut = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $reponse = null;
public function getId(): ?int
{
return $this->id;
}
public function getDateDemande(): ?\DateTimeInterface
{
return $this->dateDemande;
}
public function setDateDemande(?\DateTimeInterface $dateDemande): self
{
$this->dateDemande = $dateDemande;
return $this;
}
public function getDescription(): ?string
{
return $this->description;
}
public function setDescription(?string $description): self
{
$this->description = $description;
return $this;
}
public function getNbreanneeexperience(): ?string
{
return $this->nbreanneeexperience;
}
public function setnbreanneeexperience(?string $nbreanneeexperience): self
{
$this->nbreanneeexperience = $nbreanneeexperience;
return $this;
}
public function getUser(): ?User
{
return $this->user;
}
public function setUser(?User $user): self
{
$this->user = $user;
return $this;
}
public function isStatut(): ?bool
{
return $this->statut;
}
public function setStatut(?bool $statut): self
{
$this->statut = $statut;
return $this;
}
public function getReponse(): ?string
{
return $this->reponse;
}
public function setReponse(?string $reponse): self
{
$this->reponse = $reponse;
return $this;
}
}