CotisationStaffInfos.php 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. <?php
  2. namespace AppBundle\Entity\Organization;
  3. use AppBundle\Entity\AccessAndFunction\Access;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Dunglas\ApiBundle\Annotation\Iri;
  6. use Symfony\Component\Serializer\Annotation\Groups;
  7. use Symfony\Component\Validator\Constraints as Assert;
  8. use AppBundle\Entity\Traits\TimestampableEntity;
  9. use AppBundle\Entity\Traits\CreatorUpdaterEntity;
  10. /**
  11. *
  12. * @Iri("http://schema.org/CotisationStaffInfos")
  13. */
  14. #[ORM\Entity]
  15. class CotisationStaffInfos
  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(['cotisationstaffinfos'])]
  26. private $id;
  27. /**
  28. * @var Organization
  29. */
  30. #[ORM\OneToOne(targetEntity: 'AppBundle\Entity\Organization\CotisationByYear', inversedBy: 'cotisationStaffInfos', fetch: 'EAGER')]
  31. #[Groups(['cotisationstaffinfos'])]
  32. private $cotisationByYear;
  33. #[ORM\Column(type: 'integer', nullable: true)]
  34. #[Assert\Type(type: 'integer', message: 'invalid-integer')]
  35. #[Groups(['cotisationstaffinfos', 'organization_cotisation_steps_cotisationbyyears'])]
  36. private $numberOfEmployees;
  37. #[ORM\Column(type: 'integer', nullable: true)]
  38. #[Assert\Type(type: 'integer', message: 'invalid-integer')]
  39. #[Groups(['cotisationstaffinfos', 'organization_cotisation_steps_cotisationbyyears'])]
  40. private $numberOfTeachers;
  41. #[ORM\Column(type: 'integer', nullable: true)]
  42. #[Assert\Type(type: 'integer', message: 'invalid-integer')]
  43. #[Groups(['cotisationstaffinfos', 'organization_cotisation_steps_cotisationbyyears'])]
  44. private $totalFullTimeEquivalents;
  45. #[ORM\Column(type: 'integer', nullable: true)]
  46. #[Assert\Type(type: 'integer', message: 'invalid-integer')]
  47. #[Groups(['cotisationstaffinfos', 'organization_cotisation_steps_cotisationbyyears'])]
  48. private $numberOfMinors;
  49. /**
  50. * Sets id.
  51. *
  52. * @param int $id
  53. *
  54. * @return $this
  55. */
  56. public function setId($id)
  57. {
  58. $this->id = $id;
  59. return $this;
  60. }
  61. /**
  62. * Gets id.
  63. *
  64. * @return int
  65. */
  66. public function getId()
  67. {
  68. return $this->id;
  69. }
  70. /**
  71. * Set numberOfEmployees
  72. *
  73. * @param integer $numberOfEmployees
  74. *
  75. * @return CotisationStaffInfos
  76. */
  77. public function setNumberOfEmployees($numberOfEmployees)
  78. {
  79. $this->numberOfEmployees = $numberOfEmployees;
  80. return $this;
  81. }
  82. /**
  83. * Get numberOfEmployees
  84. *
  85. * @return integer
  86. */
  87. public function getNumberOfEmployees()
  88. {
  89. return $this->numberOfEmployees;
  90. }
  91. /**
  92. * Set numberOfTeachers
  93. *
  94. * @param integer $numberOfTeachers
  95. *
  96. * @return CotisationStaffInfos
  97. */
  98. public function setNumberOfTeachers($numberOfTeachers)
  99. {
  100. $this->numberOfTeachers = $numberOfTeachers;
  101. return $this;
  102. }
  103. /**
  104. * Get numberOfTeachers
  105. *
  106. * @return integer
  107. */
  108. public function getNumberOfTeachers()
  109. {
  110. return $this->numberOfTeachers;
  111. }
  112. /**
  113. * Set totalFullTimeEquivalents
  114. *
  115. * @param integer $totalFullTimeEquivalents
  116. *
  117. * @return CotisationStaffInfos
  118. */
  119. public function setTotalFullTimeEquivalents($totalFullTimeEquivalents)
  120. {
  121. $this->totalFullTimeEquivalents = $totalFullTimeEquivalents;
  122. return $this;
  123. }
  124. /**
  125. * Get totalFullTimeEquivalents
  126. *
  127. * @return integer
  128. */
  129. public function getTotalFullTimeEquivalents()
  130. {
  131. return $this->totalFullTimeEquivalents;
  132. }
  133. /**
  134. * Set numberOfMinors
  135. *
  136. * @param integer $numberOfMinors
  137. *
  138. * @return CotisationStaffInfos
  139. */
  140. public function setNumberOfMinors($numberOfMinors)
  141. {
  142. $this->numberOfMinors = $numberOfMinors;
  143. return $this;
  144. }
  145. /**
  146. * Get numberOfMinors
  147. *
  148. * @return integer
  149. */
  150. public function getNumberOfMinors()
  151. {
  152. return $this->numberOfMinors;
  153. }
  154. /**
  155. * Set cotisationByYear
  156. *
  157. * @param \AppBundle\Entity\Organization\CotisationByYear $cotisationByYear
  158. *
  159. * @return CotisationStaffInfos
  160. */
  161. public function setCotisationByYear(\AppBundle\Entity\Organization\CotisationByYear $cotisationByYear = null)
  162. {
  163. $this->cotisationByYear = $cotisationByYear;
  164. return $this;
  165. }
  166. /**
  167. * Get cotisationByYear
  168. *
  169. * @return \AppBundle\Entity\Organization\CotisationByYear
  170. */
  171. public function getCotisationByYear()
  172. {
  173. return $this->cotisationByYear;
  174. }
  175. }