<?php
namespace App\Entity\Main;
use Doctrine\ORM\Mapping as ORM;
/**
* ApiProvinces
*
* @ORM\Table(name="api_provinces", indexes={@ORM\Index(name="Provinces_AutonomousCommunities_FK", columns={"autonomousCommunity"}), @ORM\Index(name="Provinces_Countries_FK", columns={"country"})})
* @ORM\Entity(repositoryClass="App\Repository\Main\ApiProvincesRepository")
*/
class ApiProvinces
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* @var int|null
*
* @ORM\Column(name="country", type="integer", nullable=true, options={"default"="NULL"})
*/
private $country = NULL;
/**
* @var int|null
*
* @ORM\Column(name="autonomousCommunity", type="integer", nullable=true, options={"default"="NULL"})
*/
private $autonomouscommunity = NULL;
/**
* @var string|null
*
* @ORM\Column(name="name", type="string", length=150, nullable=true, options={"default"="NULL"})
*/
private $name = 'NULL';
/**
* @var string
*
* @ORM\Column(name="friendly", type="string", length=255, nullable=false)
*/
private $friendly;
public function getId(): ?int
{
return $this->id;
}
public function getCountry(): ?int
{
return $this->country;
}
public function setCountry(?int $country): self
{
$this->country = $country;
return $this;
}
public function getAutonomouscommunity(): ?int
{
return $this->autonomouscommunity;
}
public function setAutonomouscommunity(?int $autonomouscommunity): self
{
$this->autonomouscommunity = $autonomouscommunity;
return $this;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(?string $name): self
{
$this->name = $name;
return $this;
}
public function getFriendly(): ?string
{
return $this->friendly;
}
public function setFriendly(string $friendly): self
{
$this->friendly = $friendly;
return $this;
}
}