src/Entity/Etablissement.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Application\Sonata\UserBundle\Entity\User;
  4. /**
  5.  * Etablissement.
  6.  */
  7. class Etablissement
  8. {
  9.     /**
  10.      * @var int
  11.      */
  12.     private $id;
  13.     /**
  14.      * @var crypt
  15.      */
  16.     private $code;
  17.     /**
  18.      * @var crypt
  19.      */
  20.     private $nom;
  21.     /**
  22.      * @var float
  23.      */
  24.     private $surface;
  25.     /**
  26.      * @var int
  27.      */
  28.     private $nombreBatiments;
  29.     /**
  30.      * @var int
  31.      */
  32.     private $nombreOccupants;
  33.     /**
  34.      * @var crypt
  35.      */
  36.     private $typeEtablissementAutre;
  37.     /**
  38.      * @var crypt
  39.      */
  40.     private $coordonneeX;
  41.     /**
  42.      * @var crypt
  43.      */
  44.     private $coordonneeY;
  45.     /**
  46.      * @var string
  47.      */
  48.     private $sourceContenu;
  49.     /**
  50.      * @var \DateTime
  51.      */
  52.     private $createdAt;
  53.     /**
  54.      * @var \DateTime
  55.      */
  56.     private $updatedAt;
  57.     /**
  58.      * @var string
  59.      */
  60.     private $codeOrigineSource;
  61.     /**
  62.      * @var crypt
  63.      */
  64.     private $typeEtablissementSource;
  65.     /**
  66.      * @var string
  67.      */
  68.     private $origineContenu;
  69.     /**
  70.      * @var crypt
  71.      */
  72.     private $codeUnique;
  73.     /**
  74.      * @var \Doctrine\Common\Collections\Collection
  75.      */
  76.     private $Batiment;
  77.     /**
  78.      * @var \App\Entity\TypeEtablissement
  79.      */
  80.     private $TypeEtablissement;
  81.     /**
  82.      * @var \App\Application\Sonata\UserBundle\Entity\User
  83.      */
  84.     private $CreatedBy;
  85.     /**
  86.      * @var \App\Application\Sonata\UserBundle\Entity\User
  87.      */
  88.     private $UpdatedBy;
  89.     /**
  90.      * @var \App\Entity\NombreBatiments
  91.      */
  92.     private $NombreDeBatiments;
  93.     /**
  94.      * @var \App\Entity\FournisseurDonnees
  95.      */
  96.     private $FournisseurDonnees;
  97.     /**
  98.      * Constructor.
  99.      */
  100.     public function __construct()
  101.     {
  102.         $this->Batiment = new \Doctrine\Common\Collections\ArrayCollection();
  103.     }
  104.     public function __toString()
  105.     {
  106.         return $this->nom;
  107.     }
  108.     /**
  109.      * Get id.
  110.      *
  111.      * @return int
  112.      */
  113.     public function getId()
  114.     {
  115.         return $this->id;
  116.     }
  117.     /**
  118.      * Set code.
  119.      *
  120.      * @param crypt $code
  121.      *
  122.      * @return Etablissement
  123.      */
  124.     public function setCode($code)
  125.     {
  126.         $this->code $code;
  127.         return $this;
  128.     }
  129.     /**
  130.      * Get code.
  131.      *
  132.      * @return crypt
  133.      */
  134.     public function getCode()
  135.     {
  136.         return $this->code;
  137.     }
  138.     /**
  139.      * Set nom.
  140.      *
  141.      * @param crypt $nom
  142.      *
  143.      * @return Etablissement
  144.      */
  145.     public function setNom($nom)
  146.     {
  147.         $this->nom $nom;
  148.         return $this;
  149.     }
  150.     /**
  151.      * Get nom.
  152.      *
  153.      * @return crypt
  154.      */
  155.     public function getNom()
  156.     {
  157.         return $this->nom;
  158.     }
  159.     /**
  160.      * Set surface.
  161.      *
  162.      * @param float $surface
  163.      *
  164.      * @return Etablissement
  165.      */
  166.     public function setSurface($surface)
  167.     {
  168.         $this->surface $surface;
  169.         return $this;
  170.     }
  171.     /**
  172.      * Get surface.
  173.      *
  174.      * @return float
  175.      */
  176.     public function getSurface()
  177.     {
  178.         return $this->surface;
  179.     }
  180.     /**
  181.      * Set nombreBatiments.
  182.      *
  183.      * @param int $nombreBatiments
  184.      *
  185.      * @return Etablissement
  186.      */
  187.     public function setNombreBatiments($nombreBatiments)
  188.     {
  189.         $this->nombreBatiments $nombreBatiments;
  190.         return $this;
  191.     }
  192.     /**
  193.      * Get nombreBatiments.
  194.      *
  195.      * @return int
  196.      */
  197.     public function getNombreBatiments()
  198.     {
  199.         return $this->nombreBatiments;
  200.     }
  201.     /**
  202.      * Set nombreOccupants.
  203.      *
  204.      * @param int $nombreOccupants
  205.      *
  206.      * @return Etablissement
  207.      */
  208.     public function setNombreOccupants($nombreOccupants)
  209.     {
  210.         $this->nombreOccupants $nombreOccupants;
  211.         return $this;
  212.     }
  213.     /**
  214.      * Get nombreOccupants.
  215.      *
  216.      * @return int
  217.      */
  218.     public function getNombreOccupants()
  219.     {
  220.         return $this->nombreOccupants;
  221.     }
  222.     /**
  223.      * Set typeEtablissementAutre.
  224.      *
  225.      * @param crypt $typeEtablissementAutre
  226.      *
  227.      * @return Etablissement
  228.      */
  229.     public function setTypeEtablissementAutre($typeEtablissementAutre)
  230.     {
  231.         $this->typeEtablissementAutre $typeEtablissementAutre;
  232.         return $this;
  233.     }
  234.     /**
  235.      * Get typeEtablissementAutre.
  236.      *
  237.      * @return crypt
  238.      */
  239.     public function getTypeEtablissementAutre()
  240.     {
  241.         return $this->typeEtablissementAutre;
  242.     }
  243.     /**
  244.      * Set coordonneeX.
  245.      *
  246.      * @param crypt $coordonneeX
  247.      *
  248.      * @return Etablissement
  249.      */
  250.     public function setCoordonneeX($coordonneeX)
  251.     {
  252.         $this->coordonneeX $coordonneeX;
  253.         return $this;
  254.     }
  255.     /**
  256.      * Get coordonneeX.
  257.      *
  258.      * @return crypt
  259.      */
  260.     public function getCoordonneeX()
  261.     {
  262.         return $this->coordonneeX;
  263.     }
  264.     /**
  265.      * Set coordonneeY.
  266.      *
  267.      * @param crypt $coordonneeY
  268.      *
  269.      * @return Etablissement
  270.      */
  271.     public function setCoordonneeY($coordonneeY)
  272.     {
  273.         $this->coordonneeY $coordonneeY;
  274.         return $this;
  275.     }
  276.     /**
  277.      * Get coordonneeY.
  278.      *
  279.      * @return crypt
  280.      */
  281.     public function getCoordonneeY()
  282.     {
  283.         return $this->coordonneeY;
  284.     }
  285.     /**
  286.      * Set sourceContenu.
  287.      *
  288.      * @param string $sourceContenu
  289.      *
  290.      * @return Etablissement
  291.      */
  292.     public function setSourceContenu($sourceContenu)
  293.     {
  294.         $this->sourceContenu $sourceContenu;
  295.         return $this;
  296.     }
  297.     /**
  298.      * Get sourceContenu.
  299.      *
  300.      * @return string
  301.      */
  302.     public function getSourceContenu()
  303.     {
  304.         return $this->sourceContenu;
  305.     }
  306.     /**
  307.      * Set createdAt.
  308.      *
  309.      * @param \DateTime $createdAt
  310.      *
  311.      * @return Etablissement
  312.      */
  313.     public function setCreatedAt($createdAt)
  314.     {
  315.         $this->createdAt $createdAt;
  316.         return $this;
  317.     }
  318.     /**
  319.      * Get createdAt.
  320.      *
  321.      * @return \DateTime
  322.      */
  323.     public function getCreatedAt()
  324.     {
  325.         return $this->createdAt;
  326.     }
  327.     /**
  328.      * Set updatedAt.
  329.      *
  330.      * @param \DateTime $updatedAt
  331.      *
  332.      * @return Etablissement
  333.      */
  334.     public function setUpdatedAt($updatedAt)
  335.     {
  336.         $this->updatedAt $updatedAt;
  337.         return $this;
  338.     }
  339.     /**
  340.      * Get updatedAt.
  341.      *
  342.      * @return \DateTime
  343.      */
  344.     public function getUpdatedAt()
  345.     {
  346.         return $this->updatedAt;
  347.     }
  348.     /**
  349.      * Set codeOrigineSource.
  350.      *
  351.      * @param string $codeOrigineSource
  352.      *
  353.      * @return Etablissement
  354.      */
  355.     public function setCodeOrigineSource($codeOrigineSource)
  356.     {
  357.         $this->codeOrigineSource $codeOrigineSource;
  358.         return $this;
  359.     }
  360.     /**
  361.      * Get codeOrigineSource.
  362.      *
  363.      * @return string
  364.      */
  365.     public function getCodeOrigineSource()
  366.     {
  367.         return $this->codeOrigineSource;
  368.     }
  369.     /**
  370.      * Set typeEtablissementSource.
  371.      *
  372.      * @param crypt $typeEtablissementSource
  373.      *
  374.      * @return Etablissement
  375.      */
  376.     public function setTypeEtablissementSource($typeEtablissementSource)
  377.     {
  378.         $this->typeEtablissementSource $typeEtablissementSource;
  379.         return $this;
  380.     }
  381.     /**
  382.      * Get typeEtablissementSource.
  383.      *
  384.      * @return crypt
  385.      */
  386.     public function getTypeEtablissementSource()
  387.     {
  388.         return $this->typeEtablissementSource;
  389.     }
  390.     /**
  391.      * Set origineContenu.
  392.      *
  393.      * @param string $origineContenu
  394.      *
  395.      * @return Etablissement
  396.      */
  397.     public function setOrigineContenu($origineContenu)
  398.     {
  399.         $this->origineContenu $origineContenu;
  400.         return $this;
  401.     }
  402.     /**
  403.      * Get origineContenu.
  404.      *
  405.      * @return string
  406.      */
  407.     public function getOrigineContenu()
  408.     {
  409.         return $this->origineContenu;
  410.     }
  411.     /**
  412.      * Set codeUnique.
  413.      *
  414.      * @param crypt $codeUnique
  415.      *
  416.      * @return Etablissement
  417.      */
  418.     public function setCodeUnique($codeUnique)
  419.     {
  420.         $this->codeUnique $codeUnique;
  421.         return $this;
  422.     }
  423.     /**
  424.      * Get codeUnique.
  425.      *
  426.      * @return crypt
  427.      */
  428.     public function getCodeUnique()
  429.     {
  430.         return $this->codeUnique;
  431.     }
  432.     /**
  433.      * Add batiment.
  434.      *
  435.      * @param \App\Entity\Batiment $batiment
  436.      *
  437.      * @return Etablissement
  438.      */
  439.     public function addBatiment(Batiment $batiment)
  440.     {
  441.         $this->Batiment[] = $batiment;
  442.         return $this;
  443.     }
  444.     /**
  445.      * Remove batiment.
  446.      *
  447.      * @param \App\Entity\Batiment $batiment
  448.      */
  449.     public function removeBatiment(Batiment $batiment)
  450.     {
  451.         $this->Batiment->removeElement($batiment);
  452.     }
  453.     /**
  454.      * Get batiment.
  455.      *
  456.      * @return \Doctrine\Common\Collections\Collection
  457.      */
  458.     public function getBatiment()
  459.     {
  460.         return $this->Batiment;
  461.     }
  462.     /**
  463.      * Set typeEtablissement.
  464.      *
  465.      * @param \App\Entity\TypeEtablissement $typeEtablissement
  466.      *
  467.      * @return Etablissement
  468.      */
  469.     public function setTypeEtablissement(TypeEtablissement $typeEtablissement null)
  470.     {
  471.         $this->TypeEtablissement $typeEtablissement;
  472.         return $this;
  473.     }
  474.     /**
  475.      * Get typeEtablissement.
  476.      *
  477.      * @return \App\Entity\TypeEtablissement
  478.      */
  479.     public function getTypeEtablissement()
  480.     {
  481.         return $this->TypeEtablissement;
  482.     }
  483.     /**
  484.      * Set createdBy.
  485.      *
  486.      * @param \App\Application\Sonata\UserBundle\Entity\User $createdBy
  487.      *
  488.      * @return Etablissement
  489.      */
  490.     public function setCreatedBy(User $createdBy null)
  491.     {
  492.         $this->CreatedBy $createdBy;
  493.         return $this;
  494.     }
  495.     /**
  496.      * Get createdBy.
  497.      *
  498.      * @return \App\Application\Sonata\UserBundle\Entity\User
  499.      */
  500.     public function getCreatedBy()
  501.     {
  502.         return $this->CreatedBy;
  503.     }
  504.     /**
  505.      * Set updatedBy.
  506.      *
  507.      * @param \App\Application\Sonata\UserBundle\Entity\User $updatedBy
  508.      *
  509.      * @return Etablissement
  510.      */
  511.     public function setUpdatedBy(User $updatedBy null)
  512.     {
  513.         $this->UpdatedBy $updatedBy;
  514.         return $this;
  515.     }
  516.     /**
  517.      * Get updatedBy.
  518.      *
  519.      * @return \App\Application\Sonata\UserBundle\Entity\User
  520.      */
  521.     public function getUpdatedBy()
  522.     {
  523.         return $this->UpdatedBy;
  524.     }
  525.     /**
  526.      * Set nombreDeBatiments.
  527.      *
  528.      * @param \App\Entity\NombreBatiments $nombreDeBatiments
  529.      *
  530.      * @return Etablissement
  531.      */
  532.     public function setNombreDeBatiments(NombreBatiments $nombreDeBatiments null)
  533.     {
  534.         $this->NombreDeBatiments $nombreDeBatiments;
  535.         return $this;
  536.     }
  537.     /**
  538.      * Get nombreDeBatiments.
  539.      *
  540.      * @return \App\Entity\NombreBatiments
  541.      */
  542.     public function getNombreDeBatiments()
  543.     {
  544.         return $this->NombreDeBatiments;
  545.     }
  546.     /**
  547.      * Set fournisseurDonnees.
  548.      *
  549.      * @param \App\Entity\FournisseurDonnees $fournisseurDonnees
  550.      *
  551.      * @return Etablissement
  552.      */
  553.     public function setFournisseurDonnees(FournisseurDonnees $fournisseurDonnees null)
  554.     {
  555.         $this->FournisseurDonnees $fournisseurDonnees;
  556.         return $this;
  557.     }
  558.     /**
  559.      * Get fournisseurDonnees.
  560.      *
  561.      * @return \App\Entity\FournisseurDonnees
  562.      */
  563.     public function getFournisseurDonnees()
  564.     {
  565.         return $this->FournisseurDonnees;
  566.     }
  567. }