<?phpnamespace App\Entity;use App\Repository\StockLevelRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=StockLevelRepository::class) */class StockLevel{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\ManyToOne(targetEntity=Fridge::class, inversedBy="stockLevels") * @ORM\JoinColumn(nullable=false) */ private $fridge; /** * @ORM\Column(type="integer", nullable=true) */ private $min; /** * @ORM\Column(type="integer", nullable=true) */ private $max; /** * @ORM\Column(type="date") */ private $date; /** * @ORM\ManyToOne(targetEntity=ProductType::class, inversedBy="stockLevels") * @ORM\JoinColumn(nullable=false) */ private $product_type; /** * @ORM\Column(type="integer") */ private $priority; public function getId(): ?int { return $this->id; } public function getFridge(): ?Fridge { return $this->fridge; } public function setFridge(?Fridge $fridge): self { $this->fridge = $fridge; return $this; } public function getMin(): ?int { return $this->min; } public function setMin(?int $min): self { $this->min = $min; return $this; } public function getMax(): ?int { return $this->max; } public function setMax(?int $max): self { $this->max = $max; return $this; } public function getDate(): ?\DateTimeInterface { return $this->date; } public function setDate(\DateTimeInterface $date): self { $this->date = $date; return $this; } public function getProductType(): ?ProductType { return $this->product_type; } public function setProductType(?ProductType $product_type): self { $this->product_type = $product_type; return $this; } public function getPriority(): ?int { return $this->priority; } public function setPriority(int $priority): self { $this->priority = $priority; return $this; }}