<?php
namespace App\Entity;
use App\Repository\ColorRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=ColorRepository::class)
*/
class Color
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
*/
private $name;
/**
* @ORM\Column(type="string", length=255)
*/
private $colorCode;
/**
* @ORM\Column(type="string", length=255)
*/
private $extraCode;
/**
* @ORM\Column(type="integer")
*/
private $colorGroup;
/**
* @ORM\Column(type="boolean")
*/
private $status;
public function getId(): ?int
{
return $this->id;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(string $name): self
{
$this->name = $name;
return $this;
}
public function getColorCode(): ?string
{
return $this->colorCode;
}
public function setColorCode(string $colorCode): self
{
$this->colorCode = $colorCode;
return $this;
}
public function getExtraCode(): ?string
{
return $this->extraCode;
}
public function setExtraCode(string $extraCode): self
{
$this->extraCode = $extraCode;
return $this;
}
public function getColorGroup(): ?int
{
return $this->colorGroup;
}
public function setColorGroup(int $colorGroup): self
{
$this->colorGroup = $colorGroup;
return $this;
}
public function getStatus(): ?bool
{
return $this->status;
}
public function setStatus(bool $status): self
{
$this->status = $status;
return $this;
}
}