<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: \App\Repository\FichierFormationRepository::class)]
class FichierFormation
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'string', length: 255)]
private $contenu;
#[ORM\ManyToOne(targetEntity: \App\Entity\User::class, inversedBy: 'fichierFormations')]
private $user;
#[ORM\Column(type: 'datetime')]
private $created_at;
#[ORM\JoinColumn(nullable: false)]
#[ORM\ManyToOne(targetEntity: \App\Entity\ChapitreFormation::class, inversedBy: 'fichiers')]
private $chapitre;
public function getId(): ?int
{
return $this->id;
}
public function getContenu(): ?string
{
return $this->contenu;
}
public function setContenu(string $contenu): self
{
$this->contenu = $contenu;
return $this;
}
public function getUser(): ?User
{
return $this->user;
}
public function setUser(?User $user): self
{
$this->user = $user;
return $this;
}
public function getCreatedAt(): ?\DateTimeInterface
{
return $this->created_at;
}
public function setCreatedAt(\DateTimeInterface $created_at): self
{
$this->created_at = $created_at;
return $this;
}
public function getChapitre(): ?ChapitreFormation
{
return $this->chapitre;
}
public function setChapitre(?ChapitreFormation $chapitre): self
{
$this->chapitre = $chapitre;
return $this;
}
}