<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* pays
*
* @ORM\Table(name="pays")
* @ORM\Entity(repositoryClass="App\Repository\paysRepository")
*/
class pays
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="code", type="string", length=3, unique=true)
*/
private $code;
/**
* @var string
*
* @ORM\Column(name="nom", type="string", length=255)
*/
private $nom;
/**
* @var int
*
* @ORM\Column(name="etat", type="smallint")
*/
private $etat;
/**
* Get id
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set code
*
* @param string $code
*
* @return pays
*/
public function setCode($code)
{
$this->code = $code;
return $this;
}
/**
* Get code
*
* @return string
*/
public function getCode()
{
return $this->code;
}
/**
* Set nom
*
* @param string $nom
*
* @return pays
*/
public function setNom($nom)
{
$this->nom = $nom;
return $this;
}
/**
* Get nom
*
* @return string
*/
public function getNom()
{
return $this->nom;
}
/**
* Set etat
*
* @param integer $etat
*
* @return pays
*/
public function setEtat($etat)
{
$this->etat = $etat;
return $this;
}
/**
* Get etat
*
* @return int
*/
public function getEtat()
{
return $this->etat;
}
}