EducationalProjectAge.php 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  1. <?php
  2. namespace AppBundle\Entity\Booking;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Dunglas\ApiBundle\Annotation\Iri;
  5. use Symfony\Component\Serializer\Annotation\Groups;
  6. use Symfony\Component\Validator\Constraints as Assert;
  7. use AppBundle\Entity\Traits\TimestampableEntity;
  8. use AppBundle\Entity\Traits\CreatorUpdaterEntity;
  9. /**
  10. * Répartition des âges dans une prestation pédagogique EducationnalProject
  11. *
  12. * @Iri("http://schema.org/EducationalProjectAge")
  13. */
  14. #[ORM\Entity]
  15. class EducationalProjectAge
  16. {
  17. use TimestampableEntity;
  18. use CreatorUpdaterEntity;
  19. /**
  20. * @var int
  21. */
  22. #[ORM\Column(type: 'integer')]
  23. #[ORM\Id]
  24. #[ORM\GeneratedValue(strategy: 'AUTO')]
  25. #[Groups(['educationalprojectage', 'educationalproject_details'])]
  26. private $id;
  27. /**
  28. * @var int
  29. */
  30. #[ORM\Column(type: 'integer', nullable: true)]
  31. #[Assert\Type(type: 'integer', message: 'invalid-integer')]
  32. #[Groups(['educationalprojectage', 'educationalproject_details_agedistribution'])]
  33. private $rep0to3;
  34. /**
  35. * @var int */
  36. #[ORM\Column(type: 'integer', nullable: true)]
  37. #[Assert\Type(type: 'integer', message: 'invalid-integer')]
  38. #[Groups(['educationalprojectage', 'educationalproject_details_agedistribution'])]
  39. private $rep4to6;
  40. /**
  41. * @var int */
  42. #[ORM\Column(type: 'integer', nullable: true)]
  43. #[Assert\Type(type: 'integer', message: 'invalid-integer')]
  44. #[Groups(['educationalprojectage', 'educationalproject_details_agedistribution'])]
  45. private $rep7to11;
  46. /**
  47. * @var int */
  48. #[ORM\Column(type: 'integer', nullable: true)]
  49. #[Assert\Type(type: 'integer', message: 'invalid-integer')]
  50. #[Groups(['educationalprojectage', 'educationalproject_details_agedistribution'])]
  51. private $rep12to15;
  52. /**
  53. * @var int */
  54. #[ORM\Column(type: 'integer', nullable: true)]
  55. #[Assert\Type(type: 'integer', message: 'invalid-integer')]
  56. #[Groups(['educationalprojectage', 'educationalproject_details_agedistribution'])]
  57. private $rep16to25;
  58. /**
  59. * @var int */
  60. #[ORM\Column(type: 'integer', nullable: true)]
  61. #[Assert\Type(type: 'integer', message: 'invalid-integer')]
  62. #[Groups(['educationalprojectage', 'educationalproject_details_agedistribution'])]
  63. private $repAdult;
  64. /**
  65. * @var int */
  66. #[ORM\Column(type: 'integer', nullable: true)]
  67. #[Assert\Type(type: 'integer', message: 'invalid-integer')]
  68. #[Groups(['educationalprojectage', 'educationalproject_details_agedistribution'])]
  69. private $repSenior;
  70. /**
  71. * @var int */
  72. #[ORM\Column(type: 'integer', nullable: true)]
  73. #[Assert\Type(type: 'integer', message: 'invalid-integer')]
  74. #[Groups(['educationalprojectage', 'educationalproject_details_agedistribution', 'planning_detail_educationalproject'])]
  75. private $total;
  76. /**
  77. * Sets id.
  78. *
  79. * @param int $id
  80. *
  81. * @return $this
  82. */
  83. public function setId($id)
  84. {
  85. $this->id = $id;
  86. return $this;
  87. }
  88. /**
  89. * Gets id.
  90. *
  91. * @return int
  92. */
  93. public function getId()
  94. {
  95. return $this->id;
  96. }
  97. /**
  98. * Sets rep0to3.
  99. *
  100. * @param int $rep0to3
  101. *
  102. * @return $this
  103. */
  104. public function setRep0to3($rep0to3)
  105. {
  106. $this->rep0to3 = $rep0to3;
  107. return $this;
  108. }
  109. /**
  110. * Gets rep0to3.
  111. *
  112. * @return int
  113. */
  114. public function getRep0to3()
  115. {
  116. return $this->rep0to3;
  117. }
  118. /**
  119. * Sets rep4to6.
  120. *
  121. * @param int $rep4to6
  122. *
  123. * @return $this
  124. */
  125. public function setRep4to6($rep4to6)
  126. {
  127. $this->rep4to6 = $rep4to6;
  128. return $this;
  129. }
  130. /**
  131. * Gets rep4to6.
  132. *
  133. * @return int
  134. */
  135. public function getRep4to6()
  136. {
  137. return $this->rep4to6;
  138. }
  139. /**
  140. * Sets rep7to11.
  141. *
  142. * @param int $rep7to11
  143. *
  144. * @return $this
  145. */
  146. public function setRep7to11($rep7to11)
  147. {
  148. $this->rep7to11 = $rep7to11;
  149. return $this;
  150. }
  151. /**
  152. * Gets rep7to11.
  153. *
  154. * @return int
  155. */
  156. public function getRep7to11()
  157. {
  158. return $this->rep7to11;
  159. }
  160. /**
  161. * Sets rep12to15.
  162. *
  163. * @param int $rep12to15
  164. *
  165. * @return $this
  166. */
  167. public function setRep12to15($rep12to15)
  168. {
  169. $this->rep12to15 = $rep12to15;
  170. return $this;
  171. }
  172. /**
  173. * Gets rep12to15.
  174. *
  175. * @return int
  176. */
  177. public function getRep12to15()
  178. {
  179. return $this->rep12to15;
  180. }
  181. /**
  182. * Sets repAdult.
  183. *
  184. * @param int $repAdult
  185. *
  186. * @return $this
  187. */
  188. public function setRepAdult($repAdult)
  189. {
  190. $this->repAdult = $repAdult;
  191. return $this;
  192. }
  193. /**
  194. * Gets repAdult.
  195. *
  196. * @return int
  197. */
  198. public function getRepAdult()
  199. {
  200. return $this->repAdult;
  201. }
  202. /**
  203. * Sets repSenior.
  204. *
  205. * @param int $repSenior
  206. *
  207. * @return $this
  208. */
  209. public function setRepSenior($repSenior)
  210. {
  211. $this->repSenior = $repSenior;
  212. return $this;
  213. }
  214. /**
  215. * Gets repSenior.
  216. *
  217. * @return int
  218. */
  219. public function getRepSenior()
  220. {
  221. return $this->repSenior;
  222. }
  223. /**
  224. * Sets total.
  225. *
  226. * @param int $total
  227. *
  228. * @return $this
  229. */
  230. public function setTotal($total)
  231. {
  232. $this->total = $total;
  233. return $this;
  234. }
  235. /**
  236. * Gets total.
  237. *
  238. * @return int
  239. */
  240. public function getTotal()
  241. {
  242. return $this->total;
  243. }
  244. /**
  245. * Set rep16to25
  246. *
  247. * @param integer $rep16to25
  248. *
  249. * @return EducationalProjectAge
  250. */
  251. public function setRep16to25($rep16to25)
  252. {
  253. $this->rep16to25 = $rep16to25;
  254. return $this;
  255. }
  256. /**
  257. * Get rep16to25
  258. *
  259. * @return integer
  260. */
  261. public function getRep16to25()
  262. {
  263. return $this->rep16to25;
  264. }
  265. }