src/CoreBundle/Entity/SelfStudyTypicalExamProblemElement.php line 12

Open in your IDE?
  1. <?php
  2. namespace CoreBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * @ORM\Table("self_study_typical_exam_problem_element")
  6. * @ORM\Entity
  7. */
  8. class SelfStudyTypicalExamProblemElement
  9. {
  10. /**
  11. * @var int
  12. *
  13. * @ORM\Column(name="id", type="integer")
  14. * @ORM\Id
  15. * @ORM\GeneratedValue(strategy="AUTO")
  16. */
  17. private $id;
  18. /**
  19. * @var int
  20. *
  21. * @ORM\Column(name="sortorder", type="integer")
  22. */
  23. private $order;
  24. /**
  25. * @var string
  26. *
  27. * @ORM\Column(name="type", type="string", length=255)
  28. */
  29. private $type;
  30. /**
  31. * @var string
  32. *
  33. * @ORM\Column(name="content", type="string", length=2500)
  34. */
  35. private $content;
  36. /**
  37. * @var SelfStudyTypicalExamProblem
  38. *
  39. * @ORM\ManyToOne(targetEntity="SelfStudyTypicalExamProblem", inversedBy="elements")
  40. * @ORM\JoinColumn(name="self_study_typical_exam_problem", referencedColumnName="id")
  41. */
  42. private $problem;
  43. /**
  44. * @return int
  45. */
  46. public function getId()
  47. {
  48. return $this->id;
  49. }
  50. /**
  51. * @param int $id
  52. */
  53. public function setId($id)
  54. {
  55. $this->id = $id;
  56. }
  57. /**
  58. * @return int
  59. */
  60. public function getOrder()
  61. {
  62. return $this->order;
  63. }
  64. /**
  65. * @param int $order
  66. */
  67. public function setOrder($order)
  68. {
  69. $this->order = $order;
  70. }
  71. /**
  72. * @return string
  73. */
  74. public function getType()
  75. {
  76. return $this->type;
  77. }
  78. /**
  79. * @param string $type
  80. */
  81. public function setType($type)
  82. {
  83. $this->type = $type;
  84. }
  85. /**
  86. * @return string
  87. */
  88. public function getContent()
  89. {
  90. return $this->content;
  91. }
  92. /**
  93. * @param string $content
  94. */
  95. public function setContent($content)
  96. {
  97. $this->content = $content;
  98. }
  99. /**
  100. * @return SelfStudyTypicalExamProblem
  101. */
  102. public function getProblem()
  103. {
  104. return $this->problem;
  105. }
  106. /**
  107. * @param SelfStudyTypicalExamProblem $problem
  108. */
  109. public function setProblem($problem)
  110. {
  111. $this->problem = $problem;
  112. }
  113. }