<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
/**
* @ORM\Entity(repositoryClass="App\Repository\ConfigRepository")
* @UniqueEntity(
* fields={"name"},
* message="config deja Exist."
* )
*/
class Config
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @var string
* @Assert\NotBlank(message="Name Obligatoire")
* @ORM\Column(name="name", type="string", length=80, unique=true)
*/
private $name;
/**
* @var string
* @Assert\NotBlank(message="Valeur Obligatoire")
* @ORM\Column(name="valeur", type="string", length=255)
*/
private $valeur;
/**
* Get id
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set name
*
* @param string $name
*
* @return Contact
*/
public function setName($name)
{
$this->name = $name;
return $this;
}
/**
* Get name
*
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Set valeur
*
* @param string $valeur
*
* @return Contact
*/
public function setValeur($valeur)
{
$this->valeur = $valeur;
return $this;
}
/**
* Get valeur
*
* @return string
*/
public function getValeur()
{
return $this->valeur;
}
}