<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
use Gedmo\Translatable\Translatable;
/**
* DocumentType
*
* @ORM\Table(name="subcontractor_type", uniqueConstraints={@ORM\UniqueConstraint(name="subcontractor_type_id_uindex", columns={"id"})})
* @ORM\Entity
*/
class SubcontractorType
{
/**
* @var integer
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="code", type="string", length=255, nullable=true)
*/
private $code;
/**
* @var string
*
* @ORM\Column(name="libelle", type="string", length=255, nullable=true)
* @Gedmo\Translatable
*/
private $libelle;
/**
* @return int
*/
public function getId(): int
{
return $this->id;
}
/**
* @param int $id
*/
public function setId(int $id): void
{
$this->id = $id;
}
/**
* @return string
*/
public function getCode(): string
{
return $this->code;
}
/**
* @param string $code
*/
public function setCode(string $code): void
{
$this->code = $code;
}
/**
* @return string
*/
public function getLibelle(): string
{
return $this->libelle;
}
/**
* @param string $libelle
*/
public function setLibelle(string $libelle): void
{
$this->libelle = $libelle;
}
public function __toString()
{
// TODO: Implement __toString() method.
return $this->getLibelle();
}
}