<?php
namespace App\Entity;
use App\Repository\CubeRepository;
use Doctrine\ORM\Mapping\Index as DBIndex;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: CubeRepository::class)]
#[ORM\Table(name: '`cube`')]
#[DBIndex(name: "cube_prod", columns: ["prod"])]
#[DBIndex(name: "cube_size", columns: ["size"])]
#[DBIndex(name: "cube_chars", columns: ["chars"])]
#[DBIndex(name: "cube_model", columns: ["model"])]
class Cube
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column]
private int $prod = 0;
#[ORM\Column(length: 50)]
private string $model = '';
#[ORM\Column]
private int $size = 0;
#[ORM\Column]
private int $color = 0;
public function getId(): ?int
{
return $this->id;
}
public function getProd(): ?int
{
return $this->prod;
}
public function setProd(int $prod): self
{
$this->prod = $prod;
return $this;
}
public function getModel(): ?string
{
return $this->model;
}
public function setModel(string $model): self
{
$this->model = $model;
return $this;
}
public function getSize(): ?int
{
return $this->size;
}
public function setSize(int $size): self
{
$this->size = $size;
return $this;
}
public function getColor(): ?int
{
return $this->color;
}
public function setColor(int $color): self
{
$this->color = $color;
return $this;
}
}