69 lines
1.1 KiB
PHP
69 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace App\Entity;
|
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
use Doctrine\Common\Collections\ArrayCollection;
|
|
|
|
/**
|
|
* @ORM\Entity
|
|
* @ORM\Table(name="municipality")
|
|
*/
|
|
class Municipality
|
|
{
|
|
// unique id
|
|
/**
|
|
* @ORM\Id
|
|
* @ORM\Column(type="string", length=11)
|
|
*/
|
|
protected $code;
|
|
|
|
// name
|
|
/**
|
|
* @ORM\Column(type="string", length=100)
|
|
*/
|
|
protected $name;
|
|
|
|
// province id
|
|
/**
|
|
* @ORM\Column(type="string", length=11)
|
|
*/
|
|
protected $province_id;
|
|
|
|
// province name
|
|
/**
|
|
* @ORM\Column(type="string", length=100)
|
|
*/
|
|
protected $province_name;
|
|
|
|
|
|
public function __construct()
|
|
{
|
|
}
|
|
|
|
public function getID()
|
|
{
|
|
return $this->code;
|
|
}
|
|
|
|
public function setName($name)
|
|
{
|
|
$this->name = $name;
|
|
return $this;
|
|
}
|
|
|
|
public function getName()
|
|
{
|
|
return $this->name;
|
|
}
|
|
|
|
public function getProvinceID()
|
|
{
|
|
return $this->province_id;
|
|
}
|
|
|
|
public function getProvinceName()
|
|
{
|
|
return $this->province_name;
|
|
}
|
|
}
|