CourseFieldValues.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <?php
  2. namespace Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Gedmo\Mapping\Annotation as Gedmo;
  5. /**
  6. * CourseFieldValues
  7. *
  8. * @ORM\Table(name="course_field_values")
  9. * @ORM\Entity
  10. */
  11. class CourseFieldValues extends ExtraFieldValues
  12. {
  13. /**
  14. * @var integer
  15. *
  16. * @ORM\Column(name="course_code", type="string", precision=0, scale=0, nullable=false, unique=false)
  17. */
  18. private $courseCode;
  19. /**
  20. * @var string
  21. * @Gedmo\Versioned
  22. *
  23. * @ORM\Column(name="field_value", type="text", precision=0, scale=0, nullable=true, unique=false)
  24. */
  25. private $fieldValue;
  26. /**
  27. * Set fieldValue
  28. *
  29. * @param string $fieldValue
  30. * @return ExtraFieldValues
  31. */
  32. public function setFieldValue($fieldValue)
  33. {
  34. $this->fieldValue = $fieldValue;
  35. return $this;
  36. }
  37. /**
  38. * Get fieldValue
  39. *
  40. * @return string
  41. */
  42. public function getFieldValue()
  43. {
  44. return $this->fieldValue;
  45. }
  46. /**
  47. * Set questionId
  48. *
  49. * @param integer $questionId
  50. * @return QuestionFieldValues
  51. */
  52. public function setCourseCode($code)
  53. {
  54. $this->courseCode = $code;
  55. return $this;
  56. }
  57. /**
  58. * Get questionId
  59. *
  60. * @return integer
  61. */
  62. public function getCourseCode()
  63. {
  64. return $this->courseCode;
  65. }
  66. }