<?php
namespace App\Entity;
use App\Repository\GroupProductsRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: GroupProductsRepository::class)]
#[ORM\Table(name: "groups_products")]
class GroupProducts
{
//Группы товаров
const PAINTING_GROUP = 1;
const CLOTHES_GROUP = 2;
const SCULPTURES_GROUP = 3;
const OTHER_GROUP = 4;
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255)]
private ?string $title = null;
#[ORM\Column(length: 255)]
private ?string $name = null;
public function getId(): ?int
{
return $this->id;
}
public function getTitle(): ?string
{
return $this->title;
}
public function setTitle(string $title): self
{
$this->title = $title;
return $this;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(string $name): self
{
$this->name = $name;
return $this;
}
}