BillSchedule.php 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  1. <?php
  2. /**
  3. * This file is auto-generated.
  4. */
  5. declare(strict_types=1);
  6. namespace App\Entity\Billing;
  7. use ApiPlatform\Metadata\ApiResource;
  8. use App;
  9. use App\Entity\AccessWish\AccessWish;
  10. use App\Entity\Organization\Organization;
  11. use DateTimeInterface;
  12. use Doctrine\Common\Collections\Collection;
  13. use Doctrine\ORM\Mapping as ORM;
  14. #[ApiResource(operations: [])]
  15. #[ORM\Entity]
  16. class BillSchedule
  17. {
  18. #[ORM\Id]
  19. #[ORM\Column]
  20. #[ORM\GeneratedValue]
  21. private int $id;
  22. #[ORM\Column]
  23. protected mixed $label;
  24. #[ORM\Column(options: ['default' => false])]
  25. protected bool $isActive;
  26. #[ORM\Column]
  27. protected mixed $firstPayment;
  28. #[ORM\Column]
  29. protected mixed $periodicity;
  30. #[ORM\Column(type: 'integer', options: ['nullable' => true])]
  31. protected int $scheduleNumber;
  32. #[ORM\Column]
  33. protected mixed $firstBillScheduleDate;
  34. #[ORM\Column]
  35. protected mixed $paymentFirstMonth;
  36. #[ORM\Column(type: 'date', options: ['nullable' => true])]
  37. protected ?DateTimeInterface $createDate;
  38. #[ORM\Column(type: 'date', options: ['nullable' => true])]
  39. protected ?DateTimeInterface $updateDate;
  40. #[ORM\Column(type: 'integer', options: ['nullable' => true])]
  41. protected int $legacyId;
  42. #[ORM\Column(type: 'integer', options: ['nullable' => true])]
  43. protected int $createdBy;
  44. #[ORM\Column(type: 'integer', options: ['nullable' => true])]
  45. protected int $updatedBy;
  46. #[ORM\Column(options: ['default' => false])]
  47. protected bool $draft;
  48. #[ORM\ManyToOne(targetEntity: Organization::class, cascade: [], inversedBy: 'billSchedules')]
  49. #[ORM\JoinColumn(referencedColumnName: 'id', nullable: false, onDelete: 'SET NULL')]
  50. protected App\Entity\Organization\Organization $organization;
  51. #[ORM\OneToMany(mappedBy: 'billSchedule', targetEntity: BillScheduleDate::class, cascade: ['persist'], orphanRemoval: true)]
  52. protected Collection $scheduleDates;
  53. #[ORM\OneToMany(mappedBy: 'billSchedule', targetEntity: AccessBilling::class, cascade: [], orphanRemoval: false)]
  54. protected Collection $accessBilling;
  55. #[ORM\OneToMany(mappedBy: 'billSchedule', targetEntity: AccessWish::class, cascade: [], orphanRemoval: false)]
  56. protected Collection $accessWishes;
  57. function getId(): int
  58. {
  59. return $this->id;
  60. }
  61. function setId(int $id): self
  62. {
  63. $this->id = $id;
  64. return $this;
  65. }
  66. function getLabel(): mixed
  67. {
  68. return $this->label;
  69. }
  70. function setLabel(mixed $label): self
  71. {
  72. $this->label = $label;
  73. return $this;
  74. }
  75. function getIsActive(): bool
  76. {
  77. return $this->isActive;
  78. }
  79. function setIsActive(bool $isActive): self
  80. {
  81. $this->isActive = $isActive;
  82. return $this;
  83. }
  84. function getFirstPayment(): mixed
  85. {
  86. return $this->firstPayment;
  87. }
  88. function setFirstPayment(mixed $firstPayment): self
  89. {
  90. $this->firstPayment = $firstPayment;
  91. return $this;
  92. }
  93. function getPeriodicity(): mixed
  94. {
  95. return $this->periodicity;
  96. }
  97. function setPeriodicity(mixed $periodicity): self
  98. {
  99. $this->periodicity = $periodicity;
  100. return $this;
  101. }
  102. function getScheduleNumber(): int
  103. {
  104. return $this->scheduleNumber;
  105. }
  106. function setScheduleNumber(int $scheduleNumber): self
  107. {
  108. $this->scheduleNumber = $scheduleNumber;
  109. return $this;
  110. }
  111. function getFirstBillScheduleDate(): mixed
  112. {
  113. return $this->firstBillScheduleDate;
  114. }
  115. function setFirstBillScheduleDate(mixed $firstBillScheduleDate): self
  116. {
  117. $this->firstBillScheduleDate = $firstBillScheduleDate;
  118. return $this;
  119. }
  120. function getPaymentFirstMonth(): mixed
  121. {
  122. return $this->paymentFirstMonth;
  123. }
  124. function setPaymentFirstMonth(mixed $paymentFirstMonth): self
  125. {
  126. $this->paymentFirstMonth = $paymentFirstMonth;
  127. return $this;
  128. }
  129. function getCreateDate(): DateTimeInterface
  130. {
  131. return $this->createDate;
  132. }
  133. function setCreateDate(DateTimeInterface $createDate): self
  134. {
  135. $this->createDate = $createDate;
  136. return $this;
  137. }
  138. function getUpdateDate(): DateTimeInterface
  139. {
  140. return $this->updateDate;
  141. }
  142. function setUpdateDate(DateTimeInterface $updateDate): self
  143. {
  144. $this->updateDate = $updateDate;
  145. return $this;
  146. }
  147. function getLegacyId(): int
  148. {
  149. return $this->legacyId;
  150. }
  151. function setLegacyId(int $legacyId): self
  152. {
  153. $this->legacyId = $legacyId;
  154. return $this;
  155. }
  156. function getCreatedBy(): int
  157. {
  158. return $this->createdBy;
  159. }
  160. function setCreatedBy(int $createdBy): self
  161. {
  162. $this->createdBy = $createdBy;
  163. return $this;
  164. }
  165. function getUpdatedBy(): int
  166. {
  167. return $this->updatedBy;
  168. }
  169. function setUpdatedBy(int $updatedBy): self
  170. {
  171. $this->updatedBy = $updatedBy;
  172. return $this;
  173. }
  174. function getDraft(): bool
  175. {
  176. return $this->draft;
  177. }
  178. function setDraft(bool $draft): self
  179. {
  180. $this->draft = $draft;
  181. return $this;
  182. }
  183. function getOrganization(): App\Entity\Organization\Organization
  184. {
  185. return $this->organization;
  186. }
  187. function setOrganization(App\Entity\Organization\Organization $organization): self
  188. {
  189. $this->organization = $organization;
  190. return $this;
  191. }
  192. function getScheduleDates(): Collection
  193. {
  194. return $this->scheduleDates;
  195. }
  196. function setScheduleDates(Collection $scheduleDates): self
  197. {
  198. $this->scheduleDates = $scheduleDates;
  199. return $this;
  200. }
  201. function getAccessBilling(): Collection
  202. {
  203. return $this->accessBilling;
  204. }
  205. function setAccessBilling(Collection $accessBilling): self
  206. {
  207. $this->accessBilling = $accessBilling;
  208. return $this;
  209. }
  210. function getAccessWishes(): Collection
  211. {
  212. return $this->accessWishes;
  213. }
  214. function setAccessWishes(Collection $accessWishes): self
  215. {
  216. $this->accessWishes = $accessWishes;
  217. return $this;
  218. }
  219. }