SessionFieldValues.php 1.4 KB

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