src\Entity\FichierFormation.php line 8

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. #[ORM\Entity(repositoryClass\App\Repository\FichierFormationRepository::class)]
  5. class FichierFormation
  6. {
  7.     #[ORM\Id]
  8.     #[ORM\GeneratedValue]
  9.     #[ORM\Column(type'integer')]
  10.     private $id;
  11.     #[ORM\Column(type'string'length255)]
  12.     private $contenu;
  13.     #[ORM\ManyToOne(targetEntity\App\Entity\User::class, inversedBy'fichierFormations')]
  14.     private $user;
  15.     #[ORM\Column(type'datetime')]
  16.     private $created_at;
  17.     #[ORM\JoinColumn(nullablefalse)]
  18.     #[ORM\ManyToOne(targetEntity\App\Entity\ChapitreFormation::class, inversedBy'fichiers')]
  19.     private $chapitre;
  20.     public function getId(): ?int
  21.     {
  22.         return $this->id;
  23.     }
  24.     public function getContenu(): ?string
  25.     {
  26.         return $this->contenu;
  27.     }
  28.     public function setContenu(string $contenu): self
  29.     {
  30.         $this->contenu $contenu;
  31.         return $this;
  32.     }
  33.     public function getUser(): ?User
  34.     {
  35.         return $this->user;
  36.     }
  37.     public function setUser(?User $user): self
  38.     {
  39.         $this->user $user;
  40.         return $this;
  41.     }
  42.     public function getCreatedAt(): ?\DateTimeInterface
  43.     {
  44.         return $this->created_at;
  45.     }
  46.     public function setCreatedAt(\DateTimeInterface $created_at): self
  47.     {
  48.         $this->created_at $created_at;
  49.         return $this;
  50.     }
  51.     public function getChapitre(): ?ChapitreFormation
  52.     {
  53.         return $this->chapitre;
  54.     }
  55.     public function setChapitre(?ChapitreFormation $chapitre): self
  56.     {
  57.         $this->chapitre $chapitre;
  58.         return $this;
  59.     }
  60. }