src/Entity/LearningProgress.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\LearningProgressRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity(repositoryClass=LearningProgressRepository::class)
  7. */
  8. class LearningProgress
  9. {
  10. /**
  11. * @ORM\Id
  12. * @ORM\GeneratedValue
  13. * @ORM\Column(type="integer")
  14. */
  15. private $id;
  16. /**
  17. * @ORM\ManyToOne(targetEntity=Enrollment::class, inversedBy="learningProgress")
  18. * @ORM\JoinColumn(nullable=false)
  19. */
  20. private $enrollment;
  21. /**
  22. * @ORM\ManyToOne(targetEntity=Module::class, inversedBy="learningProgress")
  23. * @ORM\JoinColumn(nullable=false)
  24. */
  25. private $module;
  26. /**
  27. * @ORM\Column(type="datetime")
  28. */
  29. private $startAt;
  30. /**
  31. * @ORM\Column(type="datetime", nullable=true)
  32. */
  33. private $endAt;
  34. /**
  35. * @ORM\Column(type="string", length=255, nullable=true)
  36. */
  37. private $status;
  38. public function getId(): ?int
  39. {
  40. return $this->id;
  41. }
  42. public function getEnrollment(): ?Enrollment
  43. {
  44. return $this->enrollment;
  45. }
  46. public function setEnrollment(?Enrollment $enrollment): self
  47. {
  48. $this->enrollment = $enrollment;
  49. return $this;
  50. }
  51. public function getModule(): ?Module
  52. {
  53. return $this->module;
  54. }
  55. public function setModule(?Module $module): self
  56. {
  57. $this->module = $module;
  58. return $this;
  59. }
  60. public function getStartAt(): ?\DateTimeInterface
  61. {
  62. return $this->startAt;
  63. }
  64. public function setStartAt(\DateTimeInterface $startAt): self
  65. {
  66. $this->startAt = $startAt;
  67. return $this;
  68. }
  69. public function getEndAt(): ?\DateTimeInterface
  70. {
  71. return $this->endAt;
  72. }
  73. public function setEndAt(?\DateTimeInterface $endAt): self
  74. {
  75. $this->endAt = $endAt;
  76. return $this;
  77. }
  78. public function getStatus(): ?string
  79. {
  80. return $this->status;
  81. }
  82. public function setStatus(?string $status): self
  83. {
  84. $this->status = $status;
  85. return $this;
  86. }
  87. }