<?php
namespace App\Entity;
use App\Repository\MaterialProductsRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: MaterialProductsRepository::class)]
#[ORM\Table(name: "materials_products")]
class MaterialProducts
{
//Материалы товаров
const WOOD_MATERIAL = 1;
const METAL_MATERIAL = 2;
const PAPER_MATERIAL = 3;
const BEADS_MATERIAL = 4;
const STONE_MATERIAL = 5;
const LEATHER_MATERIAL = 6;
const OTHER_MATERIAL = 7;
#[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;
}
}