QuestionScoreName.php 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. <?php
  2. namespace Entity;
  3. use Doctrine\Common\Collections\ArrayCollection;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Table(name="question_score_name")
  7. * @ORM\Entity()
  8. */
  9. class QuestionScoreName
  10. {
  11. /**
  12. * @ORM\Column(name="id", type="integer")
  13. * @ORM\Id()
  14. * @ORM\GeneratedValue(strategy="AUTO")
  15. */
  16. private $id;
  17. /**
  18. * @ORM\Column(name="name", type="string", length=255)
  19. */
  20. private $name;
  21. /**
  22. * @ORM\Column(name="score", type="string", length=255, unique=true)
  23. */
  24. private $score;
  25. /**
  26. * @ORM\Column(name="description", type="string", length=255, unique=true)
  27. */
  28. private $description;
  29. /**
  30. * @ORM\ManyToOne(targetEntity="QuestionScore", inversedBy="items")
  31. * @ORM\JoinColumn(name="question_score_id", referencedColumnName="id")
  32. **/
  33. private $questionScore;
  34. public function __construct()
  35. {
  36. }
  37. /**
  38. * Get id
  39. *
  40. * @return integer
  41. */
  42. public function getId()
  43. {
  44. return $this->id;
  45. }
  46. /**
  47. * Set name
  48. *
  49. * @param string $name
  50. * @return QuestionScoreName
  51. */
  52. public function setName($name)
  53. {
  54. $this->name = $name;
  55. return $this;
  56. }
  57. /**
  58. * Get name
  59. *
  60. * @return string
  61. */
  62. public function getName()
  63. {
  64. return $this->name;
  65. }
  66. /**
  67. * Set description
  68. *
  69. * @param string $description
  70. * @return QuestionScore
  71. */
  72. public function setDescription($description)
  73. {
  74. $this->description = $description;
  75. return $this;
  76. }
  77. /**
  78. * Get description
  79. *
  80. * @return string
  81. */
  82. public function getDescription()
  83. {
  84. return $this->description;
  85. }
  86. /**
  87. * Set score id
  88. *
  89. * @param string $description
  90. * @return QuestionScore
  91. */
  92. public function setQuestionScore($scoreId)
  93. {
  94. $this->questionScore = $scoreId;
  95. return $this;
  96. }
  97. /**
  98. * Get score id
  99. *
  100. * @return string
  101. */
  102. public function getQuestionScore()
  103. {
  104. return $this->questionScore;
  105. }
  106. /**
  107. * Set score
  108. *
  109. * @param string $description
  110. * @return QuestionScore
  111. */
  112. public function setScore($score)
  113. {
  114. $this->score = $score;
  115. return $this;
  116. }
  117. /**
  118. * Get score
  119. *
  120. * @return string
  121. */
  122. public function getScore()
  123. {
  124. return $this->score;
  125. }
  126. }