src/CoreBundle/Entity/Textbook.php line 14

Open in your IDE?
  1. <?php
  2. namespace CoreBundle\Entity;
  3. use Doctrine\Common\Collections\ArrayCollection;
  4. use Doctrine\Common\Collections\Collection;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7. * @ORM\Table("textbook")
  8. * @ORM\Entity(repositoryClass="TextbookRepository")
  9. */
  10. class Textbook
  11. {
  12. /**
  13. * @var int
  14. *
  15. * @ORM\Column(name="id", type="integer")
  16. * @ORM\Id
  17. * @ORM\GeneratedValue(strategy="AUTO")
  18. */
  19. private int $id;
  20. /**
  21. * @var string
  22. * @ORM\Column(name="name", type="string", length=255)
  23. */
  24. private string $name;
  25. /**
  26. * @var string
  27. * @ORM\Column(name="display_name", type="string", length=255)
  28. */
  29. private string $displayName='';
  30. /**
  31. * @var ClassroomType
  32. * @ORM\ManyToMany(targetEntity="ClassroomType")
  33. * @ORM\JoinTable(name="relation_textbook_classroom_type",)
  34. */
  35. private $classroomTypes;
  36. /**
  37. * @var int
  38. *
  39. * @ORM\Column(name="order", type="integer", nullable=true)
  40. */
  41. private int $order;
  42. /**
  43. * @var string
  44. * @ORM\Column(name="front_page_title", type="string",options={"default" : ""})
  45. */
  46. private string $frontPageTitle;
  47. /**
  48. * @var string
  49. * @ORM\Column(name="front_page_subtitle", type="string",options={"default" : ""})
  50. */
  51. private string $frontPageSubtitle;
  52. /**
  53. * @var string
  54. * @ORM\Column(name="front_page_authors", type="string",options={"default" : ""})
  55. */
  56. private string $frontPageAuthors;
  57. /**
  58. * @var string
  59. * @ORM\Column(name="front_page_message_teacher", type="string",options={"default" : ""})
  60. */
  61. private string $frontPageMessageTeacher;
  62. /**
  63. * @var string
  64. * @ORM\Column(name="front_page_message_student", type="string",options={"default" : ""})
  65. */
  66. private string $frontPageMessageStudent;
  67. /**
  68. * @var string
  69. * @ORM\Column(name="front_page_image", type="string",options={"default" : ""})
  70. */
  71. private string $frontPageImage;
  72. /**
  73. * @var string
  74. * @ORM\Column(name="front_page_color", type="string",options={"default" : "#FFFFFF"})
  75. */
  76. private string $frontPageColor;
  77. private function __construct()
  78. {
  79. $this->classroomTypes = new ArrayCollection();
  80. }
  81. public function getDisplayName(): string
  82. {
  83. return $this->displayName;
  84. }
  85. public function getClassroomTypes(): Collection
  86. {
  87. return $this->classroomTypes;
  88. }
  89. public function getOrder(): int
  90. {
  91. return $this->order;
  92. }
  93. public function getName(): string
  94. {
  95. return $this->name;
  96. }
  97. public function getFrontPageTitle(): string
  98. {
  99. return $this->frontPageTitle;
  100. }
  101. public function getFrontPageSubtitle(): string
  102. {
  103. return $this->frontPageSubtitle;
  104. }
  105. public function getFrontPageAuthors(): string
  106. {
  107. return $this->frontPageAuthors;
  108. }
  109. public function getFrontPageImage(): string
  110. {
  111. return $this->frontPageImage;
  112. }
  113. public function getFrontPageColor(): string
  114. {
  115. return $this->frontPageColor;
  116. }
  117. public function getFrontPageMessageTeacher(): string
  118. {
  119. return $this->frontPageMessageTeacher;
  120. }
  121. public function getFrontPageMessageStudent(): string
  122. {
  123. return $this->frontPageMessageStudent;
  124. }
  125. }