<?php
namespace App\Entity;
use App\Repository\ProductPercentRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=ProductPercentRepository::class)
*/
class ProductPercent
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=Product::class, inversedBy="productPercents")
*/
private $product;
/**
* @ORM\ManyToOne(targetEntity=Pack::class, inversedBy="productPercents")
*/
private $pack;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $percent;
public function getId(): ?int
{
return $this->id;
}
public function getProduct(): ?Product
{
return $this->product;
}
public function setProduct(?Product $product): self
{
$this->product = $product;
return $this;
}
public function getPack(): ?Pack
{
return $this->pack;
}
public function setPack(?Pack $pack): self
{
$this->pack = $pack;
return $this;
}
public function getPercent(): ?int
{
return $this->percent;
}
public function setPercent(?int $percent): self
{
$this->percent = $percent;
return $this;
}
}