src/Entity/EnseignantSemestre.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\EnseignantSemestreRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassEnseignantSemestreRepository::class)]
  6. class EnseignantSemestre
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private $id;
  12.     #[ORM\Column(type'integer')]
  13.     private $semestre;
  14.     #[ORM\ManyToOne(targetEntityUser::class, inversedBy'enseignantSemestres')]
  15.     private $user;
  16.     #[ORM\Column(type'datetime')]
  17.     private $closeDate;
  18.     #[ORM\Column(type'string'length255)]
  19.     private $session;
  20.     #[ORM\Column(type'string'length255)]
  21.     private $designation;
  22.     #[ORM\Column(type'string'length10nullabletrue)]
  23.     private $niveau;
  24.     public function getId(): ?int
  25.     {
  26.         return $this->id;
  27.     }
  28.     public function getSemestre(): ?int
  29.     {
  30.         return $this->semestre;
  31.     }
  32.     public function setSemestre(int $semestre): self
  33.     {
  34.         $this->semestre $semestre;
  35.         return $this;
  36.     }
  37.     public function getUser(): ?User
  38.     {
  39.         return $this->user;
  40.     }
  41.     public function setUser(?User $user): self
  42.     {
  43.         $this->user $user;
  44.         return $this;
  45.     }
  46.     public function getCloseDate(): ?\DateTimeInterface
  47.     {
  48.         return $this->closeDate;
  49.     }
  50.     public function setCloseDate(\DateTimeInterface $closeDate): self
  51.     {
  52.         $this->closeDate $closeDate;
  53.         return $this;
  54.     }
  55.     public function getSession(): ?string
  56.     {
  57.         return $this->session;
  58.     }
  59.     public function setSession(string $session): self
  60.     {
  61.         $this->session $session;
  62.         return $this;
  63.     }
  64.     public function getDesignation(): ?string
  65.     {
  66.         return $this->designation;
  67.     }
  68.     public function setDesignation(string $designation): self
  69.     {
  70.         $this->designation $designation;
  71.         return $this;
  72.     }
  73.     public function getNiveau(): ?string
  74.     {
  75.         return $this->niveau;
  76.     }
  77.     public function setNiveau(?string $niveau): self
  78.     {
  79.         $this->niveau $niveau;
  80.         return $this;
  81.     }
  82.     
  83. }