<?php
namespace App\Entity;
use App\Repository\FaqDirecteurRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=FaqDirecteurRepository::class)
*/
class FaqDirecteur
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $auteur;
/**
* @ORM\Column(type="text")
*/
private $question;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $reponse;
/**
* @ORM\Column(type="datetime_immutable")
*/
private $createdAt;
public function __construct()
{
$this->createdAt = new \DateTimeImmutable();
}
public function getId(): ?int
{
return $this->id;
}
public function getAuteur(): ?string
{
return $this->auteur;
}
public function setAuteur(?string $auteur): self
{
$this->auteur = $auteur;
return $this;
}
public function getQuestion(): ?string
{
return $this->question;
}
public function setQuestion(string $question): self
{
$this->question = $question;
return $this;
}
public function getReponse(): ?string
{
return $this->reponse;
}
public function setReponse(?string $reponse): self
{
$this->reponse = $reponse;
return $this;
}
public function getCreatedAt(): ?\DateTimeImmutable
{
return $this->createdAt;
}
public function setCreatedAt(\DateTimeImmutable $createdAt): self
{
$this->createdAt = $createdAt;
return $this;
}
}