<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
use Gedmo\Translatable\Translatable;
/**
* @ORM\Entity(repositoryClass="App\Repository\ColorRepository")
*
* @ORM\Table(name="vehicle_color")
*/
class Color implements Translatable, LabelInterface
{
/**
* @ORM\Id
*
* @ORM\Column(type="bigint")
*
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
/**
* @ORM\Column(type="string")
*
* @Gedmo\Translatable
*/
protected $name;
/**
* Locale.
*
* @Gedmo\Locale
*/
protected $locale;
public function __construct(
/**
* @ORM\Column(type="string")
*/
protected $code
) {
}
/**
* Get id.
*
* @return id
*/
public function getId()
{
return $this->id;
}
/**
* Get Code.
*
* @return code
*/
public function getCode()
{
return $this->code;
}
/**
* Set code.
*
* @param code the value to set
*/
public function setCode($code): void
{
$this->code = $code;
}
/**
* Get name.
*
* @return name
*/
public function getName()
{
return $this->name;
}
/**
* Set name.
*
* @param name the value to set
*/
public function setName($name): void
{
$this->name = $name;
}
public function setTranslatableLocale($locale): void
{
$this->locale = $locale;
}
}