src/CoreBundle/Entity/Institution.php line 14

Open in your IDE?
  1. <?php
  2. namespace CoreBundle\Entity;
  3. use DateTime;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7. * @ORM\Table("institution")
  8. * @ORM\Entity(repositoryClass="CoreBundle\Entity\InstitutionRepository")
  9. */
  10. class Institution
  11. {
  12. /**
  13. * @var int
  14. *
  15. * @ORM\Column(name="id", type="integer")
  16. * @ORM\Id
  17. * @ORM\GeneratedValue(strategy="AUTO")
  18. */
  19. private $id;
  20. /**
  21. * @var string
  22. *
  23. * @ORM\Column(name="name", type="text")
  24. */
  25. private $name;
  26. /**
  27. * @var bool
  28. *
  29. * @ORM\Column(type="boolean", nullable=true)
  30. */
  31. private $customer;
  32. /**
  33. * @var bool
  34. *
  35. * @ORM\Column(type="boolean", nullable=true)
  36. */
  37. private $payingCustomer;
  38. /**
  39. * @var bool
  40. *
  41. * @ORM\Column(type="boolean", nullable=true)
  42. */
  43. private $hasRenewed;
  44. /**
  45. * @ORM\Column(name="uni_instnr", type="text", nullable=true, options={"default" = null})
  46. */
  47. private ?string $instnr = null;
  48. /**
  49. * @var DateTime
  50. *
  51. * @ORM\Column(name="expiration_basis", type="datetime", nullable=true)
  52. */
  53. private $expirationBasis;
  54. /**
  55. * @var DateTime
  56. *
  57. * @ORM\Column(name="expiration_self_study", type="datetime", nullable=true)
  58. */
  59. private $expirationSelfStudy;
  60. /**
  61. * @var DateTime
  62. *
  63. * @ORM\Column(name="expiration_textbook", type="datetime", nullable=true)
  64. */
  65. private $expirationTextbook;
  66. /**
  67. * @var ArrayCollection|ClassroomType[]
  68. *
  69. * @ORM\ManyToMany(targetEntity="ClassroomType")
  70. * @ORM\JoinTable(name="relation_institution_classroom_types",
  71. * joinColumns={@ORM\JoinColumn(name="institution", referencedColumnName="id")},
  72. * inverseJoinColumns={@ORM\JoinColumn(name="classroom_type", referencedColumnName="id")})
  73. */
  74. private $classroomTypes;
  75. /**
  76. * @return int
  77. */
  78. public function getId()
  79. {
  80. return $this->id;
  81. }
  82. /**
  83. * @param int $id
  84. */
  85. public function setId($id)
  86. {
  87. $this->id = $id;
  88. }
  89. /**
  90. * @return string
  91. */
  92. public function getName()
  93. {
  94. return $this->name;
  95. }
  96. /**
  97. * @param string $name
  98. */
  99. public function setName($name)
  100. {
  101. $this->name = $name;
  102. }
  103. public function getInstnr(): ?string
  104. {
  105. return $this->instnr;
  106. }
  107. public function setInstnr(?string $instnr)
  108. {
  109. $this->instnr = $instnr;
  110. }
  111. public function isCustomer(): ?bool
  112. {
  113. return $this->customer;
  114. }
  115. public function setCustomer(bool $customer)
  116. {
  117. $this->customer = $customer;
  118. }
  119. /**
  120. * @return bool
  121. */
  122. public function isPayingCustomer(): ?bool
  123. {
  124. return $this->payingCustomer;
  125. }
  126. /**
  127. * @param bool $payingCustomer
  128. */
  129. public function setPayingCustomer(bool $payingCustomer): void
  130. {
  131. $this->payingCustomer = $payingCustomer;
  132. }
  133. /**
  134. * @return bool
  135. */
  136. public function hasRenewed(): ?bool
  137. {
  138. return $this->hasRenewed;
  139. }
  140. /**
  141. * @param bool $hasRenewed
  142. */
  143. public function setHasRenewed(bool $hasRenewed): void
  144. {
  145. $this->hasRenewed = $hasRenewed;
  146. }
  147. /**
  148. * @return ClassroomType[]|ArrayCollection
  149. */
  150. public function getClassroomTypes()
  151. {
  152. return $this->classroomTypes;
  153. }
  154. /**
  155. * @param ClassroomType[]|ArrayCollection $classroomTypes
  156. */
  157. public function setClassroomTypes($classroomTypes): void
  158. {
  159. $this->classroomTypes = $classroomTypes;
  160. }
  161. /**
  162. * @return DateTime|null
  163. */
  164. public function getExpirationBasis(): ?DateTime
  165. {
  166. return $this->expirationBasis;
  167. }
  168. /**
  169. * @param DateTime|null $expirationBasis
  170. */
  171. public function setExpirationBasis(?DateTime $expirationBasis): void
  172. {
  173. $this->expirationBasis = $expirationBasis;
  174. }
  175. /**
  176. * @return DateTime|null
  177. */
  178. public function getExpirationSelfStudy(): ?DateTime
  179. {
  180. return $this->expirationSelfStudy;
  181. }
  182. /**
  183. * @param DateTime|null $expirationSelfStudy
  184. */
  185. public function setExpirationSelfStudy(?DateTime $expirationSelfStudy): void
  186. {
  187. $this->expirationSelfStudy = $expirationSelfStudy;
  188. }
  189. /**
  190. * @return DateTime|null
  191. */
  192. public function getExpirationTextbook(): ?DateTime
  193. {
  194. return $this->expirationTextbook;
  195. }
  196. /**
  197. * @param DateTime|null $expirationTextbook
  198. */
  199. public function setExpirationTextbook(?DateTime $expirationTextbook): void
  200. {
  201. $this->expirationTextbook = $expirationTextbook;
  202. }
  203. }