src/JuridicusBundle/Entity/Download.php line 12

Open in your IDE?
  1. <?php
  2. namespace JF\JuridicusBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Symfony\Component\Validator\Constraints as Assert;
  5. use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
  6. /**
  7. * Download
  8. */
  9. class Download
  10. {
  11. const CLASSNAME = __CLASS__;
  12. /**
  13. * @var integer
  14. */
  15. private $id;
  16. /**
  17. * @var integer
  18. * @Assert\NotBlank
  19. * @Assert\Range(min="1")
  20. */
  21. private $anzahl_protokolle;
  22. /**
  23. * @var \DateTime
  24. * @Assert\Type(\DateTimeInterface::class)
  25. */
  26. private $created_at;
  27. /**
  28. * @var \DateTime
  29. * @Assert\Type(\DateTimeInterface::class)
  30. */
  31. private $updated_at;
  32. /**
  33. * @var \JF\JuridicusBundle\Entity\Kunde
  34. * @Assert\Valid
  35. */
  36. private $kunde;
  37. /**
  38. * @var \JF\JuridicusBundle\Entity\Pruefer
  39. * @Assert\Valid
  40. */
  41. private $pruefer;
  42. /**
  43. * @var integer
  44. */
  45. private $examen;
  46. /**
  47. * @var \JF\JuridicusBundle\Entity\KundePruefung
  48. */
  49. private $buchung;
  50. /**
  51. * Get id
  52. *
  53. * @return integer
  54. */
  55. public function getId()
  56. {
  57. return $this->id;
  58. }
  59. /**
  60. * Set anzahl_protokolle
  61. *
  62. * @param integer $anzahlProtokolle
  63. * @return Download
  64. */
  65. public function setAnzahlProtokolle($anzahlProtokolle)
  66. {
  67. $this->anzahl_protokolle = $anzahlProtokolle;
  68. return $this;
  69. }
  70. /**
  71. * Get anzahl_protokolle
  72. *
  73. * @return integer
  74. */
  75. public function getAnzahlProtokolle()
  76. {
  77. return $this->anzahl_protokolle;
  78. }
  79. /**
  80. * Set created_at
  81. *
  82. * @param \DateTime $createdAt
  83. * @return Download
  84. */
  85. public function setCreatedAt($createdAt)
  86. {
  87. $this->created_at = $createdAt;
  88. return $this;
  89. }
  90. /**
  91. * Get created_at
  92. *
  93. * @return \DateTime
  94. */
  95. public function getCreatedAt()
  96. {
  97. return $this->created_at;
  98. }
  99. /**
  100. * Set updated_at
  101. *
  102. * @param \DateTime $updatedAt
  103. * @return Download
  104. */
  105. public function setUpdatedAt($updatedAt)
  106. {
  107. $this->updated_at = $updatedAt;
  108. return $this;
  109. }
  110. /**
  111. * Get updated_at
  112. *
  113. * @return \DateTime
  114. */
  115. public function getUpdatedAt()
  116. {
  117. return $this->updated_at;
  118. }
  119. /**
  120. * Set examen
  121. *
  122. * @param integer $examen
  123. * @return Download
  124. */
  125. public function setExamen($examen)
  126. {
  127. $this->examen = $examen;
  128. return $this;
  129. }
  130. /**
  131. * Get examen
  132. *
  133. * @return integer
  134. */
  135. public function getExamen()
  136. {
  137. return $this->examen;
  138. }
  139. /**
  140. * Set kunde [OWNING SIDE]
  141. *
  142. * @param \JF\JuridicusBundle\Entity\Kunde $kunde
  143. * @return Download
  144. */
  145. public function setKunde(\JF\JuridicusBundle\Entity\Kunde $kunde = null)
  146. {
  147. $this->kunde = $kunde;
  148. return $this;
  149. }
  150. /**
  151. * Get kunde
  152. *
  153. * @return \JF\JuridicusBundle\Entity\Kunde
  154. */
  155. public function getKunde()
  156. {
  157. return $this->kunde;
  158. }
  159. /**
  160. * Set pruefer [OWNING SIDE]
  161. *
  162. * @param \JF\JuridicusBundle\Entity\Pruefer $pruefer
  163. * @return Download
  164. */
  165. public function setPruefer(\JF\JuridicusBundle\Entity\Pruefer $pruefer = null)
  166. {
  167. $this->pruefer = $pruefer;
  168. return $this;
  169. }
  170. /**
  171. * Get pruefer
  172. *
  173. * @return \JF\JuridicusBundle\Entity\Pruefer
  174. */
  175. public function getPruefer()
  176. {
  177. return $this->pruefer;
  178. }
  179. /**
  180. * String Representation
  181. *
  182. * @return string
  183. */
  184. public function __toString()
  185. {
  186. return sprintf( '%s %s', $this->created_at->format('d.m.Y H:i:s'), $this->pruefer->getFullText());
  187. }
  188. /**
  189. * Set buchung
  190. *
  191. * @param \JF\JuridicusBundle\Entity\KundePruefung $buchung
  192. * @return Download
  193. */
  194. public function setBuchung(\JF\JuridicusBundle\Entity\KundePruefung $buchung = null)
  195. {
  196. $this->buchung = $buchung;
  197. return $this;
  198. }
  199. /**
  200. * Get buchung
  201. *
  202. * @return \JF\JuridicusBundle\Entity\KundePruefung
  203. */
  204. public function getBuchung()
  205. {
  206. return $this->buchung;
  207. }
  208. }