EthikTag/src/Entity/Tube.php

81 lines
1.5 KiB
PHP

<?php
namespace App\Entity;
use App\Repository\TubeRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: TubeRepository::class)]
class Tube
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 50)]
private ?string $reference = null;
#[ORM\Column(length: 50)]
private ?string $colorName = null;
#[ORM\Column(length: 20)]
private ?string $colorCss = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $analyse = null;
public function getId(): ?int
{
return $this->id;
}
public function getReference(): ?string
{
return $this->reference;
}
public function setReference(string $reference): self
{
$this->reference = $reference;
return $this;
}
public function getColorName(): ?string
{
return $this->colorName;
}
public function setColorName(string $colorName): self
{
$this->colorName = $colorName;
return $this;
}
public function getColorCss(): ?string
{
return $this->colorCss;
}
public function setColorCss(string $colorCss): self
{
$this->colorCss = $colorCss;
return $this;
}
public function getAnalyse(): ?string
{
return $this->analyse;
}
public function setAnalyse(?string $analyse): self
{
$this->analyse = $analyse;
return $this;
}
}