src/Entity/SessionPlanFormation.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\SessionPlanFormationRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=SessionPlanFormationRepository::class)
  7.  */
  8. class SessionPlanFormation
  9. {
  10.     /**
  11.      * @ORM\Id()
  12.      * @ORM\GeneratedValue()
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="string", length=255)
  18.      */
  19.     private $week;
  20.     /**
  21.      * @ORM\Column(type="date")
  22.      */
  23.     private $day;
  24.     /**
  25.      * @ORM\Column(type="string", length=255)
  26.      */
  27.     private $module;
  28.     /**
  29.      * @ORM\Column(type="string", length=255)
  30.      */
  31.     private $hours;
  32.     /**
  33.      * @ORM\OneToOne(targetEntity="App\Entity\Session")
  34.      * @ORM\JoinColumn(nullable=false)
  35.      */
  36.     private $session;
  37.     /**
  38.      * @ORM\ManyToOne(targetEntity=Formateur::class)
  39.      * @ORM\JoinColumn(nullable=false)
  40.      */
  41.     private $formateur;
  42.     public function getId(): ?int
  43.     {
  44.         return $this->id;
  45.     }
  46.     public function getDay(): ?\DateTimeInterface
  47.     {
  48.         return $this->day;
  49.     }
  50.     public function setDay(\DateTimeInterface $day): self
  51.     {
  52.         $this->day $day;
  53.         return $this;
  54.     }
  55.     public function getWeek(): ?string
  56.     {
  57.         return $this->week;
  58.     }
  59.     public function setWeek(string $week): self
  60.     {
  61.         $this->week $week;
  62.         return $this;
  63.     }
  64.     public function getModule(): ?string
  65.     {
  66.         return $this->module;
  67.     }
  68.     public function setModule(string $module): self
  69.     {
  70.         $this->module $module;
  71.         return $this;
  72.     }
  73.     public function getHours(): ?string
  74.     {
  75.         return $this->hours;
  76.     }
  77.     public function setHours(string $hours): self
  78.     {
  79.         $this->hours $hours;
  80.         return $this;
  81.     }
  82.     public function getSession(): ?Session
  83.     {
  84.         return $this->session;
  85.     }
  86.     public function setSession(?Session $session): self
  87.     {
  88.         $this->session $session;
  89.         return $this;
  90.     }
  91.     public function getFormateur(): ?Formateur
  92.     {
  93.         return $this->formateur;
  94.     }
  95.     public function setFormateur(?Formateur $formateur): self
  96.     {
  97.         $this->formateur $formateur;
  98.         return $this;
  99.     } 
  100. }
  101.