src/Entity/Mark.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\MarkRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity(repositoryClass=MarkRepository::class)
  7. */
  8. class Mark
  9. {
  10. /**
  11. * @ORM\Id
  12. * @ORM\GeneratedValue(strategy="AUTO")
  13. * @ORM\Column(type="integer")
  14. */
  15. private $id;
  16. /**
  17. * @ORM\ManyToOne(targetEntity=Student::class)
  18. * @ORM\JoinColumn(nullable=false)
  19. */
  20. private $student;
  21. /**
  22. * @ORM\ManyToOne(targetEntity=Evaluation::class, inversedBy="marks", cascade={"persist"})
  23. * @ORM\JoinColumn(nullable=false)
  24. */
  25. private $evaluation;
  26. /**
  27. * @ORM\Column(type="float")
  28. */
  29. private $value;
  30. /**
  31. * @ORM\Column(type="integer")
  32. */
  33. private $weight;
  34. /**
  35. * @ORM\Column(type="integer", name="rank2",nullable=true)
  36. */
  37. private $rank2;
  38. /**
  39. * @ORM\Column(type="string", length=100, nullable=true)
  40. */
  41. private $appreciation;
  42. public function getId(): ?int
  43. {
  44. return $this->id;
  45. }
  46. public function getStudent(): ?Student
  47. {
  48. return $this->student;
  49. }
  50. public function setStudent(?Student $student): self
  51. {
  52. $this->student = $student;
  53. return $this;
  54. }
  55. public function getEvaluation(): ?Evaluation
  56. {
  57. return $this->evaluation;
  58. }
  59. public function setEvaluation(?Evaluation $evaluation): self
  60. {
  61. $this->evaluation = $evaluation;
  62. return $this;
  63. }
  64. public function getValue(): ?float
  65. {
  66. return $this->value;
  67. }
  68. public function setValue(float $value): self
  69. {
  70. $this->value = $value;
  71. return $this;
  72. }
  73. public function getWeight(): ?int
  74. {
  75. return $this->weight;
  76. }
  77. public function setWeight(int $weight): self
  78. {
  79. $this->weight = $weight;
  80. return $this;
  81. }
  82. public function getRank2(): ?int
  83. {
  84. return $this->rank2;
  85. }
  86. public function setRank2(?int $rank2): self
  87. {
  88. $this->rank2 = $rank2;
  89. return $this;
  90. }
  91. public function getAppreciation(): ?string
  92. {
  93. return $this->appreciation;
  94. }
  95. public function setAppreciation(?string $appreciation): self
  96. {
  97. $this->appreciation = $appreciation;
  98. return $this;
  99. }
  100. }