src/Entity/StudentLevels.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\StudentLevelsRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=StudentLevelsRepository::class)
  7.  */
  8. class StudentLevels {
  9.     /**
  10.      * @ORM\Id
  11.      * @ORM\GeneratedValue
  12.      * @ORM\Column(type="integer")
  13.      */
  14.     private $id;
  15.     /**
  16.      * @ORM\ManyToOne(targetEntity=Students::class)
  17.      */
  18.     private $student;
  19.     /**
  20.      * @ORM\ManyToOne(targetEntity=Levels::class)
  21.      */
  22.     private $level;
  23.     /**
  24.      * @ORM\Column(type="date", nullable=true)
  25.      */
  26.     private $createdAt;
  27.     public function getId(): ?int {
  28.         return $this->id;
  29.     }
  30.     public function getStudent(): ?Students {
  31.         return $this->student;
  32.     }
  33.     public function setStudent(?Students $student): self {
  34.         $this->student $student;
  35.         return $this;
  36.     }
  37.     public function getLevel(): ?Levels {
  38.         return $this->level;
  39.     }
  40.     public function setLevel(?Levels $level): self {
  41.         $this->level $level;
  42.         return $this;
  43.     }
  44.     public function getCreatedAt(): ?\DateTimeInterface {
  45.         return $this->createdAt;
  46.     }
  47.     public function setCreatedAt(?\DateTimeInterface $createdAt): self {
  48.         $this->createdAt $createdAt;
  49.         return $this;
  50.     }
  51. }