FamilyQuotientBand.php 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  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\Entity\Product\IntangibleDiscountDetail;
  9. use DateTimeInterface;
  10. use Doctrine\Common\Collections\Collection;
  11. use Doctrine\ORM\Mapping as ORM;
  12. #[ApiResource(operations: [])]
  13. #[ORM\Entity]
  14. class FamilyQuotientBand
  15. {
  16. #[ORM\Id]
  17. #[ORM\Column]
  18. #[ORM\GeneratedValue]
  19. private int $id;
  20. #[ORM\Column]
  21. protected mixed $label;
  22. #[ORM\Column(options: ['default' => false])]
  23. protected bool $isActive;
  24. #[ORM\Column(type: 'integer', options: ['nullable' => true])]
  25. protected int $lowerBound;
  26. #[ORM\Column(type: 'integer', options: ['nullable' => true])]
  27. protected int $upperBound;
  28. #[ORM\Column(length: 255, options: ['nullable' => true])]
  29. protected string $calculationFormula;
  30. #[ORM\Column(type: 'date', options: ['nullable' => true])]
  31. protected ?DateTimeInterface $createDate;
  32. #[ORM\Column(type: 'date', options: ['nullable' => true])]
  33. protected ?DateTimeInterface $updateDate;
  34. #[ORM\Column(type: 'integer', options: ['nullable' => true])]
  35. protected int $legacyId;
  36. #[ORM\Column(type: 'integer', options: ['nullable' => true])]
  37. protected int $createdBy;
  38. #[ORM\Column(type: 'integer', options: ['nullable' => true])]
  39. protected int $updatedBy;
  40. #[ORM\Column(options: ['default' => false])]
  41. protected bool $draft;
  42. #[ORM\ManyToOne(targetEntity: FamilyQuotientModel::class, cascade: [], inversedBy: 'familyQuotientBands')]
  43. #[ORM\JoinColumn(referencedColumnName: 'id', nullable: false, onDelete: 'SET NULL')]
  44. protected mixed $familyQuotientModel;
  45. #[ORM\OneToMany(
  46. mappedBy: 'familyQuotientBand',
  47. targetEntity: FamilyQuotientBandDetail::class,
  48. cascade: ['persist'],
  49. orphanRemoval: true,
  50. )]
  51. protected Collection $familyQuotientBandDetails;
  52. #[ORM\OneToMany(mappedBy: 'familyQuotientBand', targetEntity: IntangibleDiscountDetail::class, cascade: [], orphanRemoval: true)]
  53. protected Collection $intangibleDiscountDetails;
  54. function getId(): int
  55. {
  56. return $this->id;
  57. }
  58. function setId(int $id): self
  59. {
  60. $this->id = $id;
  61. return $this;
  62. }
  63. function getLabel(): mixed
  64. {
  65. return $this->label;
  66. }
  67. function setLabel(mixed $label): self
  68. {
  69. $this->label = $label;
  70. return $this;
  71. }
  72. function getIsActive(): bool
  73. {
  74. return $this->isActive;
  75. }
  76. function setIsActive(bool $isActive): self
  77. {
  78. $this->isActive = $isActive;
  79. return $this;
  80. }
  81. function getLowerBound(): int
  82. {
  83. return $this->lowerBound;
  84. }
  85. function setLowerBound(int $lowerBound): self
  86. {
  87. $this->lowerBound = $lowerBound;
  88. return $this;
  89. }
  90. function getUpperBound(): int
  91. {
  92. return $this->upperBound;
  93. }
  94. function setUpperBound(int $upperBound): self
  95. {
  96. $this->upperBound = $upperBound;
  97. return $this;
  98. }
  99. function getCalculationFormula(): string
  100. {
  101. return $this->calculationFormula;
  102. }
  103. function setCalculationFormula(string $calculationFormula): self
  104. {
  105. $this->calculationFormula = $calculationFormula;
  106. return $this;
  107. }
  108. function getCreateDate(): DateTimeInterface
  109. {
  110. return $this->createDate;
  111. }
  112. function setCreateDate(DateTimeInterface $createDate): self
  113. {
  114. $this->createDate = $createDate;
  115. return $this;
  116. }
  117. function getUpdateDate(): DateTimeInterface
  118. {
  119. return $this->updateDate;
  120. }
  121. function setUpdateDate(DateTimeInterface $updateDate): self
  122. {
  123. $this->updateDate = $updateDate;
  124. return $this;
  125. }
  126. function getLegacyId(): int
  127. {
  128. return $this->legacyId;
  129. }
  130. function setLegacyId(int $legacyId): self
  131. {
  132. $this->legacyId = $legacyId;
  133. return $this;
  134. }
  135. function getCreatedBy(): int
  136. {
  137. return $this->createdBy;
  138. }
  139. function setCreatedBy(int $createdBy): self
  140. {
  141. $this->createdBy = $createdBy;
  142. return $this;
  143. }
  144. function getUpdatedBy(): int
  145. {
  146. return $this->updatedBy;
  147. }
  148. function setUpdatedBy(int $updatedBy): self
  149. {
  150. $this->updatedBy = $updatedBy;
  151. return $this;
  152. }
  153. function getDraft(): bool
  154. {
  155. return $this->draft;
  156. }
  157. function setDraft(bool $draft): self
  158. {
  159. $this->draft = $draft;
  160. return $this;
  161. }
  162. function getFamilyQuotientModel(): mixed
  163. {
  164. return $this->familyQuotientModel;
  165. }
  166. function setFamilyQuotientModel(mixed $familyQuotientModel): self
  167. {
  168. $this->familyQuotientModel = $familyQuotientModel;
  169. return $this;
  170. }
  171. function getFamilyQuotientBandDetails(): Collection
  172. {
  173. return $this->familyQuotientBandDetails;
  174. }
  175. function setFamilyQuotientBandDetails(Collection $familyQuotientBandDetails): self
  176. {
  177. $this->familyQuotientBandDetails = $familyQuotientBandDetails;
  178. return $this;
  179. }
  180. function getIntangibleDiscountDetails(): Collection
  181. {
  182. return $this->intangibleDiscountDetails;
  183. }
  184. function setIntangibleDiscountDetails(Collection $intangibleDiscountDetails): self
  185. {
  186. $this->intangibleDiscountDetails = $intangibleDiscountDetails;
  187. return $this;
  188. }
  189. }