<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\FichierFormationRepository")
*/
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", inversedBy="fichierFormations")
*/
private $user;
/**
* @ORM\Column(type="datetime")
*/
private $created_at;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\ChapitreFormation", inversedBy="fichiers")
* @ORM\JoinColumn(nullable=false)
*/
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;
}
}