src/Entity/StockLevel.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\StockLevelRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity(repositoryClass=StockLevelRepository::class)
  7. */
  8. class StockLevel
  9. {
  10. /**
  11. * @ORM\Id
  12. * @ORM\GeneratedValue
  13. * @ORM\Column(type="integer")
  14. */
  15. private $id;
  16. /**
  17. * @ORM\ManyToOne(targetEntity=Fridge::class, inversedBy="stockLevels")
  18. * @ORM\JoinColumn(nullable=false)
  19. */
  20. private $fridge;
  21. /**
  22. * @ORM\Column(type="integer", nullable=true)
  23. */
  24. private $min;
  25. /**
  26. * @ORM\Column(type="integer", nullable=true)
  27. */
  28. private $max;
  29. /**
  30. * @ORM\Column(type="date")
  31. */
  32. private $date;
  33. /**
  34. * @ORM\ManyToOne(targetEntity=ProductType::class, inversedBy="stockLevels")
  35. * @ORM\JoinColumn(nullable=false)
  36. */
  37. private $product_type;
  38. /**
  39. * @ORM\Column(type="integer")
  40. */
  41. private $priority;
  42. public function getId(): ?int
  43. {
  44. return $this->id;
  45. }
  46. public function getFridge(): ?Fridge
  47. {
  48. return $this->fridge;
  49. }
  50. public function setFridge(?Fridge $fridge): self
  51. {
  52. $this->fridge = $fridge;
  53. return $this;
  54. }
  55. public function getMin(): ?int
  56. {
  57. return $this->min;
  58. }
  59. public function setMin(?int $min): self
  60. {
  61. $this->min = $min;
  62. return $this;
  63. }
  64. public function getMax(): ?int
  65. {
  66. return $this->max;
  67. }
  68. public function setMax(?int $max): self
  69. {
  70. $this->max = $max;
  71. return $this;
  72. }
  73. public function getDate(): ?\DateTimeInterface
  74. {
  75. return $this->date;
  76. }
  77. public function setDate(\DateTimeInterface $date): self
  78. {
  79. $this->date = $date;
  80. return $this;
  81. }
  82. public function getProductType(): ?ProductType
  83. {
  84. return $this->product_type;
  85. }
  86. public function setProductType(?ProductType $product_type): self
  87. {
  88. $this->product_type = $product_type;
  89. return $this;
  90. }
  91. public function getPriority(): ?int
  92. {
  93. return $this->priority;
  94. }
  95. public function setPriority(int $priority): self
  96. {
  97. $this->priority = $priority;
  98. return $this;
  99. }
  100. }