<?phpnamespace App\Entity;use App\Repository\MessageParentRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=MessageParentRepository::class) */class MessageParent{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $parent; /** * @ORM\Column(type="string", length=255) */ private $enfant; /** * @ORM\Column(type="string", length=255) */ private $email; /** * @ORM\Column(type="text") */ private $message; /** * @ORM\Column(type="boolean") */ private $isValid; /** * @ORM\ManyToOne(targetEntity=SejourSession::class, inversedBy="messageParents") */ private $sejourSession; /** * @ORM\Column(type="datetime") */ private $creationDate; public function __construct() { $this->creationDate = new \DateTime(); } public function getId(): ?int { return $this->id; } public function getParent(): ?string { return $this->parent; } public function setParent(?string $parent): self { $this->parent = $parent; return $this; } public function getEnfant(): ?string { return $this->enfant; } public function setEnfant(string $enfant): self { $this->enfant = $enfant; return $this; } public function getEmail(): ?string { return $this->email; } public function setEmail(string $email): self { $this->email = $email; return $this; } public function getMessage(): ?string { return $this->message; } public function setMessage(string $message): self { $this->message = $message; return $this; } public function getIsValid(): ?bool { return $this->isValid; } public function setIsValid(bool $isValid): self { $this->isValid = $isValid; return $this; } public function getSejourSession(): ?SejourSession { return $this->sejourSession; } public function setSejourSession(?SejourSession $sejourSession): self { $this->sejourSession = $sejourSession; return $this; } public function getCreationDate(): ?\DateTimeInterface { return $this->creationDate; } public function setCreationDate(\DateTimeInterface $creationDate): self { $this->creationDate = $creationDate; return $this; }}