<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* State
* @ORM\Table(name="state", indexes={@ORM\Index(name="st_country_id", columns={"st_country_id"})})
* @ORM\Entity(repositoryClass="App\Repository\StateRepository")
*/
class State {
const USA = 1;
/**
* @var integer
* @ORM\Column(name="st_id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $stId;
/**
* @var string
* @ORM\Column(name="st_name", type="string", length=50, nullable=false, options={"comment"="nombre del estado"})
*/
private $stName;
/**
* @var string
* @ORM\Column(name="st_full_name", type="string", length=50, nullable=true, options={"comment"="nombre completo del estado"})
*/
private $stFullName;
/**
* @var \App\Entity\Country
* @ORM\ManyToOne(targetEntity="App\Entity\Country")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="st_country_id", referencedColumnName="co_id", options={"comment"="llave foránea desde country, relación de uno a muchos"})
* })
*/
private $stCountry;
/**
* @var string
* @ORM\Column(name="st_dian_code_lc", type="string", length=3, nullable=true, options={"comment"="código proporcionado por la DIAN, el cual identifica a los departamentos de Colombia, solo se utilizara para level Colombia"})
*/
private $stDianCodeLc;
/**
* @var string
* @ORM\Column(name="st_call_sign_lc", type="string", length=7, nullable=true, options={"comment"="Indicativo para realizar llamadas a ciudades del departamento solo aplica para Colombia, solo se utilizara para level Colombia"})
*/
private $stCallSignLc;
/**
* @return type
*/
public function getStId() {
return $this->stId;
}
/**
* @return string
*/
public function getStName() {
return $this->stName;
}
/**
* @return string
*/
public function getStFullName() {
return $this->stFullName;
}
/**
* @return type
*/
public function getStCountry() {
return $this->stCountry;
}
/**
* @param type $stId
*/
public function setStId($stId) {
$this->stId = $stId;
}
/**
* @param type $stName
*/
public function setStName($stName) {
$this->stName = $stName;
}
/**
* @param string $stFullName
*/
public function setStFullName($stFullName) {
$this->stFullName = $stFullName;
}
/**
* @param \App\Entity\Country $stCountry
*/
public function setStCountry(\App\Entity\Country $stCountry) {
$this->stCountry = $stCountry;
}
/**
* @param type $stDianCodeLc
*/
public function setStDianCodeLc($stDianCodeLc) {
$this->stDianCodeLc = $stDianCodeLc;
}
/**
* @return type
*/
public function getStDianCodeLc() {
return $this->stDianCodeLc;
}
/**
* @return type
*/
public function getStCallSignLc() {
return $this->stCallSignLc;
}
/**
* @param type $stCallSignLc
*/
public function setStCallSignLc($stCallSignLc) {
$this->stCallSignLc = $stCallSignLc;
}
/**
* @return type
*/
public function __toString() {
return $this->stName;
}
/**
* Función para pasar a de tipo objeto-entidad a json
*/
public function showEverything() {
return get_object_vars($this);
}
}