<?phpnamespace App\Entity\Idempiere;use App\Repository\Idempiere\SmMPromotionpreconditionRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=SmMPromotionpreconditionRepository::class) * @ORM\Table(name="Sm_M_PromotionPreCondition") */class SmMPromotionprecondition{ /** * @ORM\Id * @ORM\Column(type="integer") */ private $sm_m_promotionprecondition_id; /** * @ORM\Column(type="integer") */ private $sm_m_promotion_id; /** * @ORM\ManyToOne(targetEntity=SmMPromotion::class, inversedBy="SmMPromotionpreconditions") * @ORM\JoinColumn(referencedColumnName="sm_m_promotion_id", nullable=false) */ private $sm_m_promotion; /** * @ORM\Column(type="integer", nullable=true) */ private $m_product_id; /** * @ORM\ManyToOne(targetEntity=MProduct::class, inversedBy="sm_m_promotionprecondition") * @ORM\JoinColumn(referencedColumnName="m_product_id") */ private $m_product; /** * @ORM\Column(type="float") */ private $amt; /** * @ORM\Column(type="float") */ private $discount; /** * @ORM\Column(type="string", length=1) */ private $isactive; public function getId(): ?int { return $this->getSmMPromotionpreconditionId(); } public function getSmMPromotionpreconditionId(): ?int { return $this->sm_m_promotionprecondition_id; } public function setSmMPromotionpreconditionId(int $sm_m_promotionprecondition_id): self { $this->sm_m_promotionprecondition_id = $sm_m_promotionprecondition_id; return $this; } public function getSmMPromotionId(): ?int { return $this->sm_m_promotion_id; } public function setSmMPromotionId(int $sm_m_promotion_id): self { $this->sm_m_promotion_id = $sm_m_promotion_id; return $this; } public function getSmMPromotion(): ?SmMPromotion { return $this->sm_m_promotion; } public function setSmMPromotion(?SmMPromotion $sm_m_promotion): self { $this->sm_m_promotion = $sm_m_promotion; return $this; } public function getMProductId(): ?int { return $this->m_product_id; } public function setMProductId(?int $m_product_id): self { $this->m_product_id = $m_product_id; return $this; } public function getMProduct(): ?MProduct { return $this->m_product; } public function setMProduct(?MProduct $m_product): self { $this->m_product = $m_product; return $this; } public function getAmt(): ?float { return $this->amt; } public function setAmt(float $amt): self { $this->amt = $amt; return $this; } public function getDiscount(): ?float { return $this->discount; } public function setDiscount(float $discount): self { $this->discount = $discount; return $this; } public function getIsactive(): ?string { return $this->isactive; } public function setIsactive(string $isactive): self { $this->isactive = $isactive; return $this; }}