<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Countries
*
* @ORM\Table(name="countries")
* @ORM\Entity()
*/
class Countries
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="country_code", type="string", length=2, nullable=false)
*/
private $countryCode = '';
/**
* @var string
*
* @ORM\Column(name="country_name", type="string", length=100, nullable=false)
*/
private $countryName = '';
/**
* @var AbstractPerson ArrayCollection
* @ORM\OneToMany(targetEntity="Intervenant", mappedBy="country")
*/
protected $personn1;
/**
* @var AbstractPerson ArrayCollection
* @ORM\OneToMany(targetEntity="Intervenant", mappedBy="nationality")
*/
protected $personn2;
public function __toString(): string
{
return (string) $this->getCountryName();
}
/**
* @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 getCountryCode(): string
{
return $this->countryCode;
}
/**
* @param string $countryCode
*/
public function setCountryCode(string $countryCode): void
{
$this->countryCode = $countryCode;
}
/**
* @return string
*/
public function getCountryName(): string
{
return $this->countryName;
}
/**
* @param string $countryName
*/
public function setCountryName(string $countryName): void
{
$this->countryName = $countryName;
}
}