src/Entity/Idempiere/SmMPromotionprecondition.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Idempiere;
  3. use App\Repository\Idempiere\SmMPromotionpreconditionRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity(repositoryClass=SmMPromotionpreconditionRepository::class)
  7. * @ORM\Table(name="Sm_M_PromotionPreCondition")
  8. */
  9. class SmMPromotionprecondition
  10. {
  11. /**
  12. * @ORM\Id
  13. * @ORM\Column(type="integer")
  14. */
  15. private $sm_m_promotionprecondition_id;
  16. /**
  17. * @ORM\Column(type="integer")
  18. */
  19. private $sm_m_promotion_id;
  20. /**
  21. * @ORM\ManyToOne(targetEntity=SmMPromotion::class, inversedBy="SmMPromotionpreconditions")
  22. * @ORM\JoinColumn(referencedColumnName="sm_m_promotion_id", nullable=false)
  23. */
  24. private $sm_m_promotion;
  25. /**
  26. * @ORM\Column(type="integer", nullable=true)
  27. */
  28. private $m_product_id;
  29. /**
  30. * @ORM\ManyToOne(targetEntity=MProduct::class, inversedBy="sm_m_promotionprecondition")
  31. * @ORM\JoinColumn(referencedColumnName="m_product_id")
  32. */
  33. private $m_product;
  34. /**
  35. * @ORM\Column(type="float")
  36. */
  37. private $amt;
  38. /**
  39. * @ORM\Column(type="float")
  40. */
  41. private $discount;
  42. /**
  43. * @ORM\Column(type="string", length=1)
  44. */
  45. private $isactive;
  46. public function getId(): ?int
  47. {
  48. return $this->getSmMPromotionpreconditionId();
  49. }
  50. public function getSmMPromotionpreconditionId(): ?int
  51. {
  52. return $this->sm_m_promotionprecondition_id;
  53. }
  54. public function setSmMPromotionpreconditionId(int $sm_m_promotionprecondition_id): self
  55. {
  56. $this->sm_m_promotionprecondition_id = $sm_m_promotionprecondition_id;
  57. return $this;
  58. }
  59. public function getSmMPromotionId(): ?int
  60. {
  61. return $this->sm_m_promotion_id;
  62. }
  63. public function setSmMPromotionId(int $sm_m_promotion_id): self
  64. {
  65. $this->sm_m_promotion_id = $sm_m_promotion_id;
  66. return $this;
  67. }
  68. public function getSmMPromotion(): ?SmMPromotion
  69. {
  70. return $this->sm_m_promotion;
  71. }
  72. public function setSmMPromotion(?SmMPromotion $sm_m_promotion): self
  73. {
  74. $this->sm_m_promotion = $sm_m_promotion;
  75. return $this;
  76. }
  77. public function getMProductId(): ?int
  78. {
  79. return $this->m_product_id;
  80. }
  81. public function setMProductId(?int $m_product_id): self
  82. {
  83. $this->m_product_id = $m_product_id;
  84. return $this;
  85. }
  86. public function getMProduct(): ?MProduct
  87. {
  88. return $this->m_product;
  89. }
  90. public function setMProduct(?MProduct $m_product): self
  91. {
  92. $this->m_product = $m_product;
  93. return $this;
  94. }
  95. public function getAmt(): ?float
  96. {
  97. return $this->amt;
  98. }
  99. public function setAmt(float $amt): self
  100. {
  101. $this->amt = $amt;
  102. return $this;
  103. }
  104. public function getDiscount(): ?float
  105. {
  106. return $this->discount;
  107. }
  108. public function setDiscount(float $discount): self
  109. {
  110. $this->discount = $discount;
  111. return $this;
  112. }
  113. public function getIsactive(): ?string
  114. {
  115. return $this->isactive;
  116. }
  117. public function setIsactive(string $isactive): self
  118. {
  119. $this->isactive = $isactive;
  120. return $this;
  121. }
  122. }