<?phpnamespace App\Entity;use App\Repository\QuotasProductOrderRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=QuotasProductOrderRepository::class) */class QuotasProductOrder{ public const LIMIT_PRODUCTS_TYPE = 'limit_products'; public const LIMIT_ORDERS_TYPE = 'limit_orders'; /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\ManyToOne(targetEntity=Setting::class, inversedBy="quotasProductOrders") * @ORM\JoinColumn(nullable=false) */ private $setting; /** * @ORM\Column(type="boolean") */ private $enabled; /** * @ORM\Column(type="integer", nullable=true) */ private $quotasMonthInterval; /** * @ORM\Column(type="text", nullable=true) */ private $catalogues; /** * @ORM\Column(type="text", nullable=true) */ private $users; /** * @ORM\Column(type="text", nullable=true) */ private $jobs; /** * @ORM\Column(type="text", nullable=true) */ private $roles; /** * @ORM\Column(type="text", nullable=true) */ private $products; /** * @ORM\Column(type="integer") */ private $quota; /** * @ORM\Column(type="string", length=255) */ private $type; /** * @ORM\Column(type="text") */ private $label; public function getId(): ?int { return $this->id; } public function getSetting(): ?Setting { return $this->setting; } public function setSetting(?Setting $setting): self { $this->setting = $setting; return $this; } public function isEnabled(): ?bool { return $this->enabled; } public function setEnabled(bool $enabled): self { $this->enabled = $enabled; return $this; } public function getQuotasMonthInterval(): ?int { return $this->quotasMonthInterval; } public function setQuotasMonthInterval(?int $quotasMonthInterval): self { $this->quotasMonthInterval = $quotasMonthInterval; return $this; } public function getCatalogues() { return $this->catalogues; } public function setCatalogues($catalogues): self { $this->catalogues = $catalogues; return $this; } public function getUsers() { return $this->users; } public function setUsers($users): self { $this->users = $users; return $this; } public function getJobs() { return $this->jobs; } public function setJobs($jobs): self { $this->jobs = $jobs; return $this; } public function getRoles() { return $this->roles; } public function setRoles($roles): self { $this->roles = $roles; return $this; } public function getProducts() { return $this->products; } public function setProducts($products): self { $this->products = $products; return $this; } public function getQuota(): ?int { return $this->quota; } public function setQuota(int $quota): self { $this->quota = $quota; return $this; } public function getType(): ?string { return $this->type; } public function setType(string $type): self { $this->type = $type; return $this; } public function getLabel(): ?string { return $this->label; } public function setLabel(string $label): self { $this->label = $label; return $this; }}