<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use App\Repository\PaysRepository;
use App\Traits\TimstampleTrait;
#[ORM\Entity(repositoryClass: PaysRepository::class)]
#[ORM\Table(name: 'countries')]
class Pays
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'string', length: 191, nullable: true)]
private $nationalite;
#[ORM\Column(type: 'string', length: 191)]
private $pays;
#[ORM\Column(type: 'string', length: 50, nullable: true)]
private $indicatif;
#[ORM\Column(type: 'string', length: 100, nullable: true)]
private $codePays;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $flag;
#[ORM\Column(type: 'string', length: 100, nullable: true)]
private $paysIso;
public function getId(): ?int
{
return $this->id;
}
public function __toString()
{
return $this->pays;
}
/**
* Get the value of pays
*/
public function getPays()
{
return $this->pays;
}
/**
* Set the value of pays
*
* @return self
*/
public function setPays($pays)
{
$this->pays = $pays;
return $this;
}
/**
* Get the value of nationalite
*/
public function getNationalite()
{
return $this->nationalite;
}
/**
* Set the value of nationalite
*
* @return self
*/
public function setNationalite($nationalite)
{
$this->nationalite = $nationalite;
return $this;
}
/**
* Get the value of indicatif
*/
public function getIndicatif()
{
return $this->indicatif;
}
/**
* Set the value of indicatif
*
* @return self
*/
public function setIndicatif($indicatif)
{
$this->indicatif = $indicatif;
return $this;
}
/**
* Get the value of codePays
*/
public function getCodePays()
{
return $this->codePays;
}
/**
* Set the value of codePays
*
* @return self
*/
public function setCodePays($codePays)
{
$this->codePays = $codePays;
return $this;
}
/**
* Get the value of flag
*/
public function getFlag()
{
return $this->flag;
}
/**
* Set the value of flag
*
* @return self
*/
public function setFlag($flag)
{
$this->flag = $flag;
return $this;
}
/**
* Get the value of paysIso
*/
public function getPaysIso()
{
return $this->paysIso;
}
/**
* Set the value of paysIso
*
* @return self
*/
public function setPaysIso($paysIso)
{
$this->paysIso = $paysIso;
return $this;
}
}