<?php
namespace App\Entity;
use App\Entity\Traits\CommonTrait;
use App\Repository\ItemCategoryPromotionPriceRepository;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
/**
* @ORM\Entity(repositoryClass=ItemCategoryPromotionPriceRepository::class)
* @ORM\Table(name="itm_category_promo_price")
* @ORM\HasLifecycleCallbacks()
* @UniqueEntity({"uuid"})
*/
class ItemCategoryPromotionPrice
{
use CommonTrait;
/**
* @ORM\ManyToOne(targetEntity=ItemCategory::class, inversedBy="itemCategoryPromotionPrices")
* @ORM\JoinColumn(nullable=false)
*/
private $itemCategory;
/**
* @ORM\ManyToOne(targetEntity=ItemPromotion::class)
* @ORM\JoinColumn(nullable=false)
*/
private $itemPromotion;
/**
* @ORM\Column(type="decimal", precision=10, scale=2)
*/
private $price;
public function getItemCategory(): ?ItemCategory
{
return $this->itemCategory;
}
public function setItemCategory(?ItemCategory $itemCategory): self
{
$this->itemCategory = $itemCategory;
return $this;
}
public function getItemPromotion(): ?ItemPromotion
{
return $this->itemPromotion;
}
public function setItemPromotion(?ItemPromotion $itemPromotion): self
{
$this->itemPromotion = $itemPromotion;
return $this;
}
public function getPrice(): ?string
{
return $this->price;
}
public function setPrice(string $price): self
{
$this->price = $price;
return $this;
}
}