BillingIntangibleExcludeDate.php 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. <?php
  2. namespace AppBundle\Entity\Billing;
  3. use AppBundle\Entity\Product\EquipmentLoan;
  4. use Doctrine\ORM\Mapping as ORM;
  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. * BillingIntangibleExcludeDate.
  11. * Indique les produits (BillingIntangible) déjà facturés
  12. */
  13. #[ORM\Entity]
  14. class BillingIntangibleExcludeDate
  15. {
  16. use TimestampableEntity;
  17. use CreatorUpdaterEntity;
  18. /**
  19. * @var int
  20. */
  21. #[ORM\Column(type: 'integer')]
  22. #[ORM\Id]
  23. #[ORM\GeneratedValue(strategy: 'AUTO')]
  24. #[Groups(['billingintangibleexcludedate'])]
  25. private $id;
  26. /**
  27. * @var \DateTime
  28. */
  29. #[ORM\Column(type: 'date', nullable: false)]
  30. #[Assert\Date]
  31. #[Groups(['billingintangibleexcludedate'])]
  32. private $excludeDate;
  33. /**
  34. * @var AccessIntangible
  35. */
  36. #[ORM\ManyToOne(targetEntity: 'AccessIntangible', cascade: ['persist'], inversedBy: 'billingIntangibleExcludeDates')]
  37. #[Groups(['billingintangibleexcludedate'])]
  38. private $accessIntangible;
  39. /**
  40. * @var AccessFictionalIntangible
  41. */
  42. #[ORM\ManyToOne(targetEntity: 'AccessFictionalIntangible', cascade: ['persist'], inversedBy: 'billingIntangibleExcludeDates')]
  43. #[Groups(['billingintangibleexcludedate'])]
  44. private $accessFictionalIntangible;
  45. /**
  46. * @var EducationalProjectIntangible
  47. */
  48. #[ORM\ManyToOne(targetEntity: 'EducationalProjectIntangible', cascade: ['persist'], inversedBy: 'billingIntangibleExcludeDates')]
  49. #[Groups(['billingintangibleexcludedate'])]
  50. private $educationalProjectIntangible;
  51. /**
  52. * @var EquipmentLoan
  53. */
  54. #[ORM\ManyToOne(targetEntity: 'AppBundle\Entity\Product\EquipmentLoan', cascade: ['persist'], inversedBy: 'billingIntangibleExcludeDates')]
  55. #[Groups(['billingintangibleexcludedate'])]
  56. private $equipmentLoan;
  57. /**
  58. * @var Bill
  59. */
  60. #[ORM\ManyToOne(targetEntity: 'Bill', cascade: ['persist'], inversedBy: 'billingIntangibleExcludeDates')]
  61. #[Groups(['billingintangibleexcludedate'])]
  62. private $bill;
  63. public function __construct()
  64. {
  65. }
  66. /**
  67. * @return int
  68. */
  69. public function getId()
  70. {
  71. return $this->id;
  72. }
  73. /**
  74. * Sets id.
  75. *
  76. * @param int $id
  77. *
  78. * @return $this
  79. */
  80. public function setId($id)
  81. {
  82. $this->id = $id;
  83. return $this;
  84. }
  85. /**
  86. * Set excludeDate
  87. *
  88. * @param \DateTime $excludeDate
  89. *
  90. * @return BillingIntangibleExcludeDate
  91. */
  92. public function setExcludeDate($excludeDate)
  93. {
  94. $this->excludeDate = $excludeDate;
  95. return $this;
  96. }
  97. /**
  98. * Get excludeDate
  99. *
  100. * @return \DateTime
  101. */
  102. public function getExcludeDate()
  103. {
  104. return $this->excludeDate;
  105. }
  106. /**
  107. * Set accessIntangible
  108. *
  109. * @param \AppBundle\Entity\Billing\AccessIntangible $accessIntangible
  110. *
  111. * @return BillingIntangibleExcludeDate
  112. */
  113. public function setAccessIntangible(\AppBundle\Entity\Billing\AccessIntangible $accessIntangible = null)
  114. {
  115. $this->accessIntangible = $accessIntangible;
  116. return $this;
  117. }
  118. /**
  119. * Get accessIntangible
  120. *
  121. * @return \AppBundle\Entity\Billing\AccessIntangible
  122. */
  123. public function getAccessIntangible()
  124. {
  125. return $this->accessIntangible;
  126. }
  127. /**
  128. * Set bill
  129. *
  130. * @param \AppBundle\Entity\Billing\Bill $bill
  131. *
  132. * @return BillingIntangibleExcludeDate
  133. */
  134. public function setBill(\AppBundle\Entity\Billing\Bill $bill = null)
  135. {
  136. $this->bill = $bill;
  137. return $this;
  138. }
  139. /**
  140. * Get bill
  141. *
  142. * @return \AppBundle\Entity\Billing\Bill
  143. */
  144. public function getBill()
  145. {
  146. return $this->bill;
  147. }
  148. /**
  149. * Set accessFictionalIntangible
  150. *
  151. * @param \AppBundle\Entity\Billing\AccessFictionalIntangible $accessFictionalIntangible
  152. *
  153. * @return BillingIntangibleExcludeDate
  154. */
  155. public function setAccessFictionalIntangible(\AppBundle\Entity\Billing\AccessFictionalIntangible $accessFictionalIntangible = null)
  156. {
  157. $this->accessFictionalIntangible = $accessFictionalIntangible;
  158. return $this;
  159. }
  160. /**
  161. * Get accessFictionalIntangible
  162. *
  163. * @return \AppBundle\Entity\Billing\AccessFictionalIntangible
  164. */
  165. public function getAccessFictionalIntangible()
  166. {
  167. return $this->accessFictionalIntangible;
  168. }
  169. /**
  170. * Set educationalProjectIntangible
  171. *
  172. * @param \AppBundle\Entity\Billing\EducationalProjectIntangible $educationalProjectIntangible
  173. *
  174. * @return BillingIntangibleExcludeDate
  175. */
  176. public function setEducationalProjectIntangible(\AppBundle\Entity\Billing\EducationalProjectIntangible $educationalProjectIntangible = null)
  177. {
  178. $this->educationalProjectIntangible = $educationalProjectIntangible;
  179. return $this;
  180. }
  181. /**
  182. * Get educationalProjectIntangible
  183. *
  184. * @return \AppBundle\Entity\Billing\EducationalProjectIntangible
  185. */
  186. public function getEducationalProjectIntangible()
  187. {
  188. return $this->educationalProjectIntangible;
  189. }
  190. /**
  191. * Set equipmentLoan
  192. *
  193. * @param \AppBundle\Entity\Product\EquipmentLoan $equipmentLoan
  194. *
  195. * @return BillingIntangibleExcludeDate
  196. */
  197. public function setEquipmentLoan(\AppBundle\Entity\Product\EquipmentLoan $equipmentLoan = null)
  198. {
  199. $this->equipmentLoan = $equipmentLoan;
  200. return $this;
  201. }
  202. /**
  203. * Get equipmentLoan
  204. *
  205. * @return \AppBundle\Entity\Product\EquipmentLoan
  206. */
  207. public function getEquipmentLoan()
  208. {
  209. return $this->equipmentLoan;
  210. }
  211. }