src/Entity/ProgramParticipation.php line 18

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ProgramParticipationRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity(repositoryClass=ProgramParticipationRepository::class)
  7. * @ORM\AssociationOverrides({
  8. * @ORM\AssociationOverride(
  9. * name="createdBy",
  10. * inversedBy="programParticipations",
  11. * joinColumns={@ORM\JoinColumn(name="created_by", referencedColumnName="id", nullable=true, onDelete="CASCADE")}
  12. * )
  13. * })
  14. */
  15. class ProgramParticipation extends BaseEntity
  16. {
  17. /**
  18. * @ORM\Id
  19. * @ORM\GeneratedValue
  20. * @ORM\Column(type="integer")
  21. */
  22. private $id;
  23. /**
  24. * @ORM\ManyToOne(targetEntity=Program::class, inversedBy="programParticipations")
  25. */
  26. private $program;
  27. /**
  28. * @ORM\Column(type="boolean", nullable=true)
  29. */
  30. private $isRejected = false;
  31. /**
  32. * @ORM\Column(type="string", length=255, nullable=true)
  33. */
  34. private $rejectReason;
  35. /**
  36. * @ORM\Column(type="datetime", nullable=true)
  37. */
  38. private $rejectedAt;
  39. /**
  40. * @ORM\Column(type="decimal", precision=10, scale=2, nullable=true)
  41. */
  42. private $quizScore;
  43. /**
  44. * @ORM\Column(type="decimal", precision=10, scale=2, nullable=true)
  45. */
  46. private $quizTotalNote;
  47. /**
  48. * @ORM\Column(type="string", length=255, nullable=true)
  49. */
  50. private $certificate;
  51. /**
  52. * @ORM\Column(type="string", length=255, nullable=true)
  53. */
  54. private $certificateLabel;
  55. public function getId(): ?int
  56. {
  57. return $this->id;
  58. }
  59. public function getProgram(): ?Program
  60. {
  61. return $this->program;
  62. }
  63. public function setProgram(?Program $program): self
  64. {
  65. $this->program = $program;
  66. return $this;
  67. }
  68. public function isIsRejected(): ?bool
  69. {
  70. return $this->isRejected;
  71. }
  72. public function setIsRejected(?bool $isRejected): self
  73. {
  74. $this->isRejected = $isRejected;
  75. return $this;
  76. }
  77. public function getRejectReason(): ?string
  78. {
  79. return $this->rejectReason;
  80. }
  81. public function setRejectReason(?string $rejectReason): self
  82. {
  83. $this->rejectReason = $rejectReason;
  84. return $this;
  85. }
  86. public function getRejectedAt(): ?\DateTimeInterface
  87. {
  88. return $this->rejectedAt;
  89. }
  90. public function setRejectedAt(?\DateTimeInterface $rejectedAt): self
  91. {
  92. $this->rejectedAt = $rejectedAt;
  93. return $this;
  94. }
  95. public function getQuizScore(): ?string
  96. {
  97. return $this->quizScore;
  98. }
  99. public function setQuizScore(?string $quizScore): self
  100. {
  101. $this->quizScore = $quizScore;
  102. return $this;
  103. }
  104. public function getQuizTotalNote(): ?string
  105. {
  106. return $this->quizTotalNote;
  107. }
  108. public function setQuizTotalNote(?string $quizTotalNote): self
  109. {
  110. $this->quizTotalNote = $quizTotalNote;
  111. return $this;
  112. }
  113. public function getCertificate(): ?string
  114. {
  115. return $this->certificate;
  116. }
  117. public function setCertificate(?string $certificate): self
  118. {
  119. $this->certificate = $certificate;
  120. return $this;
  121. }
  122. public function getCertificateLabel(): ?string
  123. {
  124. return $this->certificateLabel;
  125. }
  126. public function setCertificateLabel(?string $certificateLabel): self
  127. {
  128. $this->certificateLabel = $certificateLabel;
  129. return $this;
  130. }
  131. }