src/Entity/PlanDeFormation.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PlanDeFormationRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=PlanDeFormationRepository::class)
  7.  */
  8. class PlanDeFormation
  9. {
  10.     /**
  11.      * @ORM\Id()
  12.      * @ORM\GeneratedValue()
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\ManyToOne(targetEntity="App\Entity\Formation", inversedBy="planDeFormation")
  18.      * @ORM\JoinColumn(nullable=false)
  19.      */
  20.     private $formation;
  21.     /**
  22.      * @ORM\Column(type="integer")
  23.      */
  24.     private $weeks;
  25.     /**
  26.      * @ORM\Column(type="integer")
  27.      */
  28.     private $days;
  29.     /**
  30.      * @ORM\Column(type="string", length=255)
  31.      */
  32.     private $modules;
  33.     /**
  34.      * @ORM\Column(type="integer")
  35.      */
  36.     private $hours;
  37.     public function getId(): ?int
  38.     {
  39.         return $this->id;
  40.     }
  41.     public function getFormation(): ?Formation
  42.     {
  43.         return $this->formation;
  44.     }
  45.     public function setFormation(?Formation $formation): self
  46.     {
  47.         $this->formation $formation;
  48.         return $this;
  49.     }
  50.     public function getWeeks(): ?int
  51.     {
  52.         return $this->weeks;
  53.     }
  54.     public function setWeeks(int $weeks): self
  55.     {
  56.         $this->weeks $weeks;
  57.         return $this;
  58.     }
  59.     public function getDays(): ?int
  60.     {
  61.         return $this->days;
  62.     }
  63.     public function setDays(int $days): self
  64.     {
  65.         $this->days $days;
  66.         return $this;
  67.     }
  68.     public function getModules(): ?string
  69.     {
  70.         return $this->modules;
  71.     }
  72.     public function setModules(?string $modules): self
  73.     {
  74.         $this->modules $modules;
  75.         return $this;
  76.     }
  77.     public function getHours(): ?int
  78.     {
  79.         return $this->hours;
  80.     }
  81.     public function setHours(int $hours): self
  82.     {
  83.         $this->hours $hours;
  84.         return $this;
  85.     }
  86. }