934 lines
17 KiB
PHP
934 lines
17 KiB
PHP
<?php
|
|
|
|
namespace Cadoles\CoreBundle\Entity;
|
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
use Doctrine\Common\Collections\ArrayCollection;
|
|
use Symfony\Component\Validator\Constraints as Assert;
|
|
|
|
/**
|
|
* Scrum
|
|
*
|
|
* @ORM\Entity
|
|
* @ORM\Table(name="etab")
|
|
* @ORM\HasLifecycleCallbacks
|
|
*/
|
|
class Etab
|
|
{
|
|
/**
|
|
* @var integer
|
|
*
|
|
* @ORM\Column(name="id", type="integer")
|
|
* @ORM\Id
|
|
* @ORM\GeneratedValue(strategy="AUTO")
|
|
*/
|
|
private $id;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", length=100, nullable=true)
|
|
*/
|
|
private $localite_acheminement_uai;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", length=100, nullable=true)
|
|
*/
|
|
private $numero_uai;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", length=100, nullable=true)
|
|
*/
|
|
private $secteur_public_prive_libe;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", length=100, nullable=true)
|
|
*/
|
|
private $etat_etablissement;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", length=100, nullable=true)
|
|
*/
|
|
private $libelle_region;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", length=100, nullable=true)
|
|
*/
|
|
private $secteur_prive_code_type_contrat;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", length=100, nullable=true)
|
|
*/
|
|
private $code_postal_uai;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", length=100, nullable=true)
|
|
*/
|
|
private $code_region;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", length=100, nullable=true)
|
|
*/
|
|
private $epsg;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", length=100, nullable=true)
|
|
*/
|
|
private $nature_uai_libe;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", length=100, nullable=true)
|
|
*/
|
|
private $appellation_officielle;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", length=100, nullable=true)
|
|
*/
|
|
private $latitude;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", length=100, nullable=true)
|
|
*/
|
|
private $secteur_prive_libelle_type_contrat;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", length=100, nullable=true)
|
|
*/
|
|
private $coordonnee_y;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", length=100, nullable=true)
|
|
*/
|
|
private $coordonnee_x;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", length=100, nullable=true)
|
|
*/
|
|
private $adresse_uai;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", length=100, nullable=true)
|
|
*/
|
|
private $code_commune;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", length=100, nullable=true)
|
|
*/
|
|
private $localisation;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", length=100, nullable=true)
|
|
*/
|
|
private $libelle_commune;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", length=100, nullable=true)
|
|
*/
|
|
private $code_departement;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", length=100, nullable=true)
|
|
*/
|
|
private $etat_etablissement_libe;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", length=100, nullable=true)
|
|
*/
|
|
private $nature_uai;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", length=100, nullable=true)
|
|
*/
|
|
private $libelle_departement;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", length=100, nullable=true)
|
|
*/
|
|
private $code_academie;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", length=100, nullable=true)
|
|
*/
|
|
private $appariement;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", length=100, nullable=true)
|
|
*/
|
|
private $longitude;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", length=100, nullable=true)
|
|
*/
|
|
private $denomination_principale;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", length=100, nullable=true)
|
|
*/
|
|
private $libelle_academie;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", length=100, nullable=true)
|
|
*/
|
|
private $position;
|
|
|
|
/**
|
|
* @ORM\OneToMany(targetEntity="Cadoles\CoreBundle\Entity\Server", mappedBy="etab", cascade={"persist"}, orphanRemoval=true)
|
|
*/
|
|
private $servers;
|
|
|
|
|
|
// A garder pour forcer l'id en init
|
|
public function setId($id)
|
|
{
|
|
$this->id = $id;
|
|
return $this;
|
|
}
|
|
|
|
|
|
/**
|
|
* Constructor
|
|
*/
|
|
public function __construct()
|
|
{
|
|
$this->servers = new \Doctrine\Common\Collections\ArrayCollection();
|
|
}
|
|
|
|
/**
|
|
* Get id
|
|
*
|
|
* @return integer
|
|
*/
|
|
public function getId()
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
/**
|
|
* Set localiteAcheminementUai
|
|
*
|
|
* @param string $localiteAcheminementUai
|
|
*
|
|
* @return Etab
|
|
*/
|
|
public function setLocaliteAcheminementUai($localiteAcheminementUai)
|
|
{
|
|
$this->localite_acheminement_uai = $localiteAcheminementUai;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get localiteAcheminementUai
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getLocaliteAcheminementUai()
|
|
{
|
|
return $this->localite_acheminement_uai;
|
|
}
|
|
|
|
/**
|
|
* Set numeroUai
|
|
*
|
|
* @param string $numeroUai
|
|
*
|
|
* @return Etab
|
|
*/
|
|
public function setNumeroUai($numeroUai)
|
|
{
|
|
$this->numero_uai = $numeroUai;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get numeroUai
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getNumeroUai()
|
|
{
|
|
return $this->numero_uai;
|
|
}
|
|
|
|
/**
|
|
* Set secteurPublicPriveLibe
|
|
*
|
|
* @param string $secteurPublicPriveLibe
|
|
*
|
|
* @return Etab
|
|
*/
|
|
public function setSecteurPublicPriveLibe($secteurPublicPriveLibe)
|
|
{
|
|
$this->secteur_public_prive_libe = $secteurPublicPriveLibe;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get secteurPublicPriveLibe
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getSecteurPublicPriveLibe()
|
|
{
|
|
return $this->secteur_public_prive_libe;
|
|
}
|
|
|
|
/**
|
|
* Set etatEtablissement
|
|
*
|
|
* @param string $etatEtablissement
|
|
*
|
|
* @return Etab
|
|
*/
|
|
public function setEtatEtablissement($etatEtablissement)
|
|
{
|
|
$this->etat_etablissement = $etatEtablissement;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get etatEtablissement
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getEtatEtablissement()
|
|
{
|
|
return $this->etat_etablissement;
|
|
}
|
|
|
|
/**
|
|
* Set libelleRegion
|
|
*
|
|
* @param string $libelleRegion
|
|
*
|
|
* @return Etab
|
|
*/
|
|
public function setLibelleRegion($libelleRegion)
|
|
{
|
|
$this->libelle_region = $libelleRegion;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get libelleRegion
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getLibelleRegion()
|
|
{
|
|
return $this->libelle_region;
|
|
}
|
|
|
|
/**
|
|
* Set secteurPriveCodeTypeContrat
|
|
*
|
|
* @param string $secteurPriveCodeTypeContrat
|
|
*
|
|
* @return Etab
|
|
*/
|
|
public function setSecteurPriveCodeTypeContrat($secteurPriveCodeTypeContrat)
|
|
{
|
|
$this->secteur_prive_code_type_contrat = $secteurPriveCodeTypeContrat;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get secteurPriveCodeTypeContrat
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getSecteurPriveCodeTypeContrat()
|
|
{
|
|
return $this->secteur_prive_code_type_contrat;
|
|
}
|
|
|
|
/**
|
|
* Set codePostalUai
|
|
*
|
|
* @param string $codePostalUai
|
|
*
|
|
* @return Etab
|
|
*/
|
|
public function setCodePostalUai($codePostalUai)
|
|
{
|
|
$this->code_postal_uai = $codePostalUai;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get codePostalUai
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getCodePostalUai()
|
|
{
|
|
return $this->code_postal_uai;
|
|
}
|
|
|
|
/**
|
|
* Set codeRegion
|
|
*
|
|
* @param string $codeRegion
|
|
*
|
|
* @return Etab
|
|
*/
|
|
public function setCodeRegion($codeRegion)
|
|
{
|
|
$this->code_region = $codeRegion;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get codeRegion
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getCodeRegion()
|
|
{
|
|
return $this->code_region;
|
|
}
|
|
|
|
/**
|
|
* Set epsg
|
|
*
|
|
* @param string $epsg
|
|
*
|
|
* @return Etab
|
|
*/
|
|
public function setEpsg($epsg)
|
|
{
|
|
$this->epsg = $epsg;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get epsg
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getEpsg()
|
|
{
|
|
return $this->epsg;
|
|
}
|
|
|
|
/**
|
|
* Set natureUaiLibe
|
|
*
|
|
* @param string $natureUaiLibe
|
|
*
|
|
* @return Etab
|
|
*/
|
|
public function setNatureUaiLibe($natureUaiLibe)
|
|
{
|
|
$this->nature_uai_libe = $natureUaiLibe;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get natureUaiLibe
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getNatureUaiLibe()
|
|
{
|
|
return $this->nature_uai_libe;
|
|
}
|
|
|
|
/**
|
|
* Set appellationOfficielle
|
|
*
|
|
* @param string $appellationOfficielle
|
|
*
|
|
* @return Etab
|
|
*/
|
|
public function setAppellationOfficielle($appellationOfficielle)
|
|
{
|
|
$this->appellation_officielle = $appellationOfficielle;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get appellationOfficielle
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getAppellationOfficielle()
|
|
{
|
|
return $this->appellation_officielle;
|
|
}
|
|
|
|
/**
|
|
* Set latitude
|
|
*
|
|
* @param string $latitude
|
|
*
|
|
* @return Etab
|
|
*/
|
|
public function setLatitude($latitude)
|
|
{
|
|
$this->latitude = $latitude;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get latitude
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getLatitude()
|
|
{
|
|
return $this->latitude;
|
|
}
|
|
|
|
/**
|
|
* Set secteurPriveLibelleTypeContrat
|
|
*
|
|
* @param string $secteurPriveLibelleTypeContrat
|
|
*
|
|
* @return Etab
|
|
*/
|
|
public function setSecteurPriveLibelleTypeContrat($secteurPriveLibelleTypeContrat)
|
|
{
|
|
$this->secteur_prive_libelle_type_contrat = $secteurPriveLibelleTypeContrat;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get secteurPriveLibelleTypeContrat
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getSecteurPriveLibelleTypeContrat()
|
|
{
|
|
return $this->secteur_prive_libelle_type_contrat;
|
|
}
|
|
|
|
/**
|
|
* Set coordonneeY
|
|
*
|
|
* @param string $coordonneeY
|
|
*
|
|
* @return Etab
|
|
*/
|
|
public function setCoordonneeY($coordonneeY)
|
|
{
|
|
$this->coordonnee_y = $coordonneeY;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get coordonneeY
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getCoordonneeY()
|
|
{
|
|
return $this->coordonnee_y;
|
|
}
|
|
|
|
/**
|
|
* Set coordonneeX
|
|
*
|
|
* @param string $coordonneeX
|
|
*
|
|
* @return Etab
|
|
*/
|
|
public function setCoordonneeX($coordonneeX)
|
|
{
|
|
$this->coordonnee_x = $coordonneeX;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get coordonneeX
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getCoordonneeX()
|
|
{
|
|
return $this->coordonnee_x;
|
|
}
|
|
|
|
/**
|
|
* Set adresseUai
|
|
*
|
|
* @param string $adresseUai
|
|
*
|
|
* @return Etab
|
|
*/
|
|
public function setAdresseUai($adresseUai)
|
|
{
|
|
$this->adresse_uai = $adresseUai;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get adresseUai
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getAdresseUai()
|
|
{
|
|
return $this->adresse_uai;
|
|
}
|
|
|
|
/**
|
|
* Set codeCommune
|
|
*
|
|
* @param string $codeCommune
|
|
*
|
|
* @return Etab
|
|
*/
|
|
public function setCodeCommune($codeCommune)
|
|
{
|
|
$this->code_commune = $codeCommune;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get codeCommune
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getCodeCommune()
|
|
{
|
|
return $this->code_commune;
|
|
}
|
|
|
|
/**
|
|
* Set localisation
|
|
*
|
|
* @param string $localisation
|
|
*
|
|
* @return Etab
|
|
*/
|
|
public function setLocalisation($localisation)
|
|
{
|
|
$this->localisation = $localisation;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get localisation
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getLocalisation()
|
|
{
|
|
return $this->localisation;
|
|
}
|
|
|
|
/**
|
|
* Set libelleCommune
|
|
*
|
|
* @param string $libelleCommune
|
|
*
|
|
* @return Etab
|
|
*/
|
|
public function setLibelleCommune($libelleCommune)
|
|
{
|
|
$this->libelle_commune = $libelleCommune;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get libelleCommune
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getLibelleCommune()
|
|
{
|
|
return $this->libelle_commune;
|
|
}
|
|
|
|
/**
|
|
* Set codeDepartement
|
|
*
|
|
* @param string $codeDepartement
|
|
*
|
|
* @return Etab
|
|
*/
|
|
public function setCodeDepartement($codeDepartement)
|
|
{
|
|
$this->code_departement = $codeDepartement;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get codeDepartement
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getCodeDepartement()
|
|
{
|
|
return $this->code_departement;
|
|
}
|
|
|
|
/**
|
|
* Set etatEtablissementLibe
|
|
*
|
|
* @param string $etatEtablissementLibe
|
|
*
|
|
* @return Etab
|
|
*/
|
|
public function setEtatEtablissementLibe($etatEtablissementLibe)
|
|
{
|
|
$this->etat_etablissement_libe = $etatEtablissementLibe;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get etatEtablissementLibe
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getEtatEtablissementLibe()
|
|
{
|
|
return $this->etat_etablissement_libe;
|
|
}
|
|
|
|
/**
|
|
* Set natureUai
|
|
*
|
|
* @param string $natureUai
|
|
*
|
|
* @return Etab
|
|
*/
|
|
public function setNatureUai($natureUai)
|
|
{
|
|
$this->nature_uai = $natureUai;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get natureUai
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getNatureUai()
|
|
{
|
|
return $this->nature_uai;
|
|
}
|
|
|
|
/**
|
|
* Set libelleDepartement
|
|
*
|
|
* @param string $libelleDepartement
|
|
*
|
|
* @return Etab
|
|
*/
|
|
public function setLibelleDepartement($libelleDepartement)
|
|
{
|
|
$this->libelle_departement = $libelleDepartement;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get libelleDepartement
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getLibelleDepartement()
|
|
{
|
|
return $this->libelle_departement;
|
|
}
|
|
|
|
/**
|
|
* Set codeAcademie
|
|
*
|
|
* @param string $codeAcademie
|
|
*
|
|
* @return Etab
|
|
*/
|
|
public function setCodeAcademie($codeAcademie)
|
|
{
|
|
$this->code_academie = $codeAcademie;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get codeAcademie
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getCodeAcademie()
|
|
{
|
|
return $this->code_academie;
|
|
}
|
|
|
|
/**
|
|
* Set appariement
|
|
*
|
|
* @param string $appariement
|
|
*
|
|
* @return Etab
|
|
*/
|
|
public function setAppariement($appariement)
|
|
{
|
|
$this->appariement = $appariement;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get appariement
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getAppariement()
|
|
{
|
|
return $this->appariement;
|
|
}
|
|
|
|
/**
|
|
* Set longitude
|
|
*
|
|
* @param string $longitude
|
|
*
|
|
* @return Etab
|
|
*/
|
|
public function setLongitude($longitude)
|
|
{
|
|
$this->longitude = $longitude;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get longitude
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getLongitude()
|
|
{
|
|
return $this->longitude;
|
|
}
|
|
|
|
/**
|
|
* Set denominationPrincipale
|
|
*
|
|
* @param string $denominationPrincipale
|
|
*
|
|
* @return Etab
|
|
*/
|
|
public function setDenominationPrincipale($denominationPrincipale)
|
|
{
|
|
$this->denomination_principale = $denominationPrincipale;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get denominationPrincipale
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getDenominationPrincipale()
|
|
{
|
|
return $this->denomination_principale;
|
|
}
|
|
|
|
/**
|
|
* Set libelleAcademie
|
|
*
|
|
* @param string $libelleAcademie
|
|
*
|
|
* @return Etab
|
|
*/
|
|
public function setLibelleAcademie($libelleAcademie)
|
|
{
|
|
$this->libelle_academie = $libelleAcademie;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get libelleAcademie
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getLibelleAcademie()
|
|
{
|
|
return $this->libelle_academie;
|
|
}
|
|
|
|
/**
|
|
* Set position
|
|
*
|
|
* @param string $position
|
|
*
|
|
* @return Etab
|
|
*/
|
|
public function setPosition($position)
|
|
{
|
|
$this->position = $position;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get position
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getPosition()
|
|
{
|
|
return $this->position;
|
|
}
|
|
|
|
/**
|
|
* Add server
|
|
*
|
|
* @param \Cadoles\CoreBundle\Entity\Server $server
|
|
*
|
|
* @return Etab
|
|
*/
|
|
public function addServer(\Cadoles\CoreBundle\Entity\Server $server)
|
|
{
|
|
$this->servers[] = $server;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Remove server
|
|
*
|
|
* @param \Cadoles\CoreBundle\Entity\Server $server
|
|
*/
|
|
public function removeServer(\Cadoles\CoreBundle\Entity\Server $server)
|
|
{
|
|
$this->servers->removeElement($server);
|
|
}
|
|
|
|
/**
|
|
* Get servers
|
|
*
|
|
* @return \Doctrine\Common\Collections\Collection
|
|
*/
|
|
public function getServers()
|
|
{
|
|
return $this->servers;
|
|
}
|
|
}
|