<?php
/**
* Created by PhpStorm.
* User: sbrun
* Date: 2018-03-23
* Time: 9:47 AM
*/
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
/**
* @ORM\Entity
* @ORM\Table(name="TPays")
*/
class Pays
{
const DEFAULT_COUNTRY = 1;
/**
* @ORM\Column(type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
/**
* @ORM\Column(name="PNom", type="string", length=50)
*/
protected $nom;
public function __toString()
{
return $this->getNom();
}
/**
* @return mixed
*/
public function getId()
{
return $this->id;
}
/**
* @return mixed
*/
public function getNom()
{
return $this->nom;
}
/**
* @param mixed $nom
*/
public function setNom($nom)
{
$this->nom = $nom;
}
}