src/Entity/StudentModule.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\StudentModuleRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=StudentModuleRepository::class)
  7.  */
  8. class StudentModule {
  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=Modules::class)
  21.      */
  22.     private $module;
  23.     /**
  24.      * 0 inactivo
  25.      * 1 activo
  26.      * @ORM\Column(type="integer", nullable=true)
  27.      */
  28.     private $available;
  29.     /**
  30.      * @ORM\Column(type="datetime", nullable=true)
  31.      */
  32.     private $finishedAt;
  33.     /**
  34.      * @ORM\Column(type="datetime", nullable=true)
  35.      */
  36.     private $enableSince;
  37.     /**
  38.      * @ORM\Column(type="datetime", nullable=true)
  39.      */
  40.     private $enableUntil;
  41.     /**
  42.      * @ORM\Column(type="string", length=10, nullable=true)
  43.      */
  44.     private $score;
  45.     /**
  46.      * @ORM\Column(type="integer", nullable=true)
  47.      */
  48.     private $approved;
  49.     public function getId(): ?int {
  50.         return $this->id;
  51.     }
  52.     public function getStudent(): ?Students {
  53.         return $this->student;
  54.     }
  55.     public function setStudent(?Students $student): self {
  56.         $this->student $student;
  57.         return $this;
  58.     }
  59.     public function getModule(): ?Modules {
  60.         return $this->module;
  61.     }
  62.     public function setModule(?Modules $module): self {
  63.         $this->module $module;
  64.         return $this;
  65.     }
  66.     public function getFinishedAt(): ?\DateTimeInterface {
  67.         return $this->finishedAt;
  68.     }
  69.     public function setFinishedAt(?\DateTimeInterface $finishedAt): self {
  70.         $this->finishedAt $finishedAt;
  71.         return $this;
  72.     }
  73.     public function getScore(): ?string {
  74.         return $this->score;
  75.     }
  76.     public function setScore(?string $score): self {
  77.         $this->score $score;
  78.         return $this;
  79.     }
  80.     public function getApproved(): ?int {
  81.         return $this->approved;
  82.     }
  83.     public function setApproved(?int $approved): self {
  84.         $this->approved $approved;
  85.         return $this;
  86.     }
  87.     public function getAvailable() {
  88.         return $this->available;
  89.     }
  90.     public function setAvailable($available): void {
  91.         $this->available $available;
  92.     }
  93.     public function getEnableSince() {
  94.         return $this->enableSince;
  95.     }
  96.     public function getEnableUntil() {
  97.         return $this->enableUntil;
  98.     }
  99.     public function setEnableSince($enableSince): void {
  100.         $this->enableSince $enableSince;
  101.     }
  102.     public function setEnableUntil($enableUntil): void {
  103.         $this->enableUntil $enableUntil;
  104.     }
  105. }