src/Entity/QuotasProductOrder.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\QuotasProductOrderRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity(repositoryClass=QuotasProductOrderRepository::class)
  7. */
  8. class QuotasProductOrder
  9. {
  10. public const LIMIT_PRODUCTS_TYPE = 'limit_products';
  11. public const LIMIT_ORDERS_TYPE = 'limit_orders';
  12. /**
  13. * @ORM\Id
  14. * @ORM\GeneratedValue
  15. * @ORM\Column(type="integer")
  16. */
  17. private $id;
  18. /**
  19. * @ORM\ManyToOne(targetEntity=Setting::class, inversedBy="quotasProductOrders")
  20. * @ORM\JoinColumn(nullable=false)
  21. */
  22. private $setting;
  23. /**
  24. * @ORM\Column(type="boolean")
  25. */
  26. private $enabled;
  27. /**
  28. * @ORM\Column(type="integer", nullable=true)
  29. */
  30. private $quotasMonthInterval;
  31. /**
  32. * @ORM\Column(type="text", nullable=true)
  33. */
  34. private $catalogues;
  35. /**
  36. * @ORM\Column(type="text", nullable=true)
  37. */
  38. private $users;
  39. /**
  40. * @ORM\Column(type="text", nullable=true)
  41. */
  42. private $jobs;
  43. /**
  44. * @ORM\Column(type="text", nullable=true)
  45. */
  46. private $roles;
  47. /**
  48. * @ORM\Column(type="text", nullable=true)
  49. */
  50. private $products;
  51. /**
  52. * @ORM\Column(type="integer")
  53. */
  54. private $quota;
  55. /**
  56. * @ORM\Column(type="string", length=255)
  57. */
  58. private $type;
  59. /**
  60. * @ORM\Column(type="text")
  61. */
  62. private $label;
  63. public function getId(): ?int
  64. {
  65. return $this->id;
  66. }
  67. public function getSetting(): ?Setting
  68. {
  69. return $this->setting;
  70. }
  71. public function setSetting(?Setting $setting): self
  72. {
  73. $this->setting = $setting;
  74. return $this;
  75. }
  76. public function isEnabled(): ?bool
  77. {
  78. return $this->enabled;
  79. }
  80. public function setEnabled(bool $enabled): self
  81. {
  82. $this->enabled = $enabled;
  83. return $this;
  84. }
  85. public function getQuotasMonthInterval(): ?int
  86. {
  87. return $this->quotasMonthInterval;
  88. }
  89. public function setQuotasMonthInterval(?int $quotasMonthInterval): self
  90. {
  91. $this->quotasMonthInterval = $quotasMonthInterval;
  92. return $this;
  93. }
  94. public function getCatalogues()
  95. {
  96. return $this->catalogues;
  97. }
  98. public function setCatalogues($catalogues): self
  99. {
  100. $this->catalogues = $catalogues;
  101. return $this;
  102. }
  103. public function getUsers()
  104. {
  105. return $this->users;
  106. }
  107. public function setUsers($users): self
  108. {
  109. $this->users = $users;
  110. return $this;
  111. }
  112. public function getJobs()
  113. {
  114. return $this->jobs;
  115. }
  116. public function setJobs($jobs): self
  117. {
  118. $this->jobs = $jobs;
  119. return $this;
  120. }
  121. public function getRoles()
  122. {
  123. return $this->roles;
  124. }
  125. public function setRoles($roles): self
  126. {
  127. $this->roles = $roles;
  128. return $this;
  129. }
  130. public function getProducts()
  131. {
  132. return $this->products;
  133. }
  134. public function setProducts($products): self
  135. {
  136. $this->products = $products;
  137. return $this;
  138. }
  139. public function getQuota(): ?int
  140. {
  141. return $this->quota;
  142. }
  143. public function setQuota(int $quota): self
  144. {
  145. $this->quota = $quota;
  146. return $this;
  147. }
  148. public function getType(): ?string
  149. {
  150. return $this->type;
  151. }
  152. public function setType(string $type): self
  153. {
  154. $this->type = $type;
  155. return $this;
  156. }
  157. public function getLabel(): ?string
  158. {
  159. return $this->label;
  160. }
  161. public function setLabel(string $label): self
  162. {
  163. $this->label = $label;
  164. return $this;
  165. }
  166. }