src/Entity/Fiche/FicheBatiment.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Fiche;
  3. use App\Entity\User\User;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Symfony\Component\Serializer\Annotation\Ignore;
  7. #[ORM\Entity(repositoryClass\App\Repository\Fiche\FicheBatimentRepository::class)]
  8. class FicheBatiment {
  9.     const PUBLIC_DIR __DIR__ '/../../../public';
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column(type'integer')]
  13.     private $id;
  14.     #[ORM\Column(type'string'length255nullabletrue)]
  15.     private $idFiche;
  16.     #[ORM\Column(type'string'length255nullabletrue)]
  17.     private $nomDuProjet;
  18.     
  19.         #[ORM\Column(type'string'length255nullabletrue)]
  20.     private $nomDuProjetCourt;
  21.     
  22.     #[ORM\Column(type'string'length255nullabletrue)]
  23.     private $nomUsageCourt;
  24.         #[ORM\Column(type'string'length255nullabletrue)]
  25.     private $moa;
  26.     #[ORM\Column(type'string'length255nullabletrue)]
  27.     private $ville;
  28.     #[ORM\Column(type'string'length3nullabletrue)]
  29.     private $departement;
  30.     #[ORM\Column(type'float'nullabletrue)]
  31.     private $time;
  32.     #[ORM\Column(type'string'length255nullabletrue)]
  33.     private $nomInitialFichier;
  34.     #[ORM\Column(type'string'length255nullabletrue)]
  35.     private $idFichier;
  36.     #[ORM\Column(type'float'nullabletrue)]
  37.     private $surfaceShon;
  38.     #[ORM\Column(type'float'nullabletrue)]
  39.     private $bbioTotalAnnuel;
  40.     #[ORM\Column(type'float'nullabletrue)]
  41.     private $bbiomax;
  42.     #[ORM\Column(type'float'nullabletrue)]
  43.     private $bbioChaudAnnuel;
  44.     #[ORM\Column(type'float'nullabletrue)]
  45.     private $bbioFroidAnnuel;
  46.     #[ORM\Column(type'float'nullabletrue)]
  47.     private $bbioEclairageAnnuel;
  48.     #[ORM\Column(type'float'nullabletrue)]
  49.     private $ratioPsi;
  50.     #[ORM\Column(type'float'nullabletrue)]
  51.     private $q4PaSurf;
  52.     #[ORM\Column(type'float'nullabletrue)]
  53.     private $totalSurfaceOpaque;
  54.     #[ORM\Column(type'float'nullabletrue)]
  55.     private $totalSurfaceVitree;
  56.     #[ORM\Column(type'float'nullabletrue)]
  57.     private $volumeGroupe;
  58.     #[ORM\Column(type'float'nullabletrue)]
  59.     private $surfaceTotaleEnveloppe;
  60.     #[ORM\Column(type'float'nullabletrue)]
  61.     private $compacite;
  62.     #[ORM\Column(type'float'nullabletrue)]
  63.     private $tauxVitrage;
  64.     #[ORM\Column(type'float'nullabletrue)]
  65.     private $uwMoyen;
  66.     #[ORM\Column(type'float'nullabletrue)]
  67.     private $usageZone;
  68.     #[ORM\Column(type'float'nullabletrue)]
  69.     private $gainBbio;
  70.     #[ORM\Column(type'float'nullabletrue)]
  71.     private $cepProjet;
  72.     #[ORM\Column(type'float'nullabletrue)]
  73.     private $cepMax;
  74.     #[ORM\Column(type'float'nullabletrue)]
  75.     private $gainCep;
  76.     #[ORM\Column(type'float'nullabletrue)]
  77.     private $cepCh;
  78.     #[ORM\Column(type'float'nullabletrue)]
  79.     private $cepFr;
  80.     #[ORM\Column(type'float'nullabletrue)]
  81.     private $cepECS;
  82.     #[ORM\Column(type'float'nullabletrue)]
  83.     private $cepEcl;
  84.     #[ORM\Column(type'float'nullabletrue)]
  85.     private $cepVentil;
  86.     #[ORM\Column(type'float'nullabletrue)]
  87.     private $cepDistrib;
  88.     #[ORM\Column(type'float'nullabletrue)]
  89.     private $cepPV;
  90.     #[ORM\Column(type'float'nullabletrue)]
  91.     private $aepenr;
  92.     #[ORM\Column(type'string'length3nullabletrue)]
  93.     private $zoneClimatique;
  94.     #[ORM\Column(type'float'nullabletrue)]
  95.     private $tauxBrassageBBIO;
  96.     #[ORM\Column(type'float'nullabletrue)]
  97.     private $partBaiesSudBatiment;
  98.     #[ORM\Column(type'string'length255nullabletrue)]
  99.     private $nomUsage;
  100.     /**
  101.      * @var User
  102.      */
  103.     #[ORM\ManyToOne(targetEntity\App\Entity\User\User::class, inversedBy'listFicheBatiment')]
  104.     #[ORM\JoinColumn(nullabletrue)] // /**
  105.     #[Ignore]
  106.     private $theUser;
  107.     #[ORM\Column(type'float'nullabletrue)]
  108.     private $RatioEclNat;
  109.     #[ORM\Column(type'float'nullabletrue)]
  110.     private $MasqueMoyen;
  111.     #[ORM\Column(type'float'nullabletrue)]
  112.     private $QvRepOccBatiment;
  113.     #[ORM\Column(type'float'nullabletrue)]
  114.     private $QvSoufOccBatiment;
  115.     #[ORM\Column(type'float'nullabletrue)]
  116.     private $PVentSoufBatiment;
  117.     #[ORM\Column(type'float'nullabletrue)]
  118.     private $PVentRepBatiment;
  119.     #[ORM\Column(type'float'nullabletrue)]
  120.     private $PVentSpecifiqueBatiment;
  121.     #[ORM\Column(type'float'nullabletrue)]
  122.     private $CombinaisonCompaciteTauxVitrage;
  123.     #[ORM\Column(type'float'nullabletrue)]
  124.     private $CombinaisonCompaciteTauxVitrageBrassageBBIO;
  125.     #[ORM\Column(type'float'nullabletrue)]
  126.     private $DeperditionBatiment;
  127.     #[ORM\Column(type'float'nullabletrue)]
  128.     private $DeperditionSurfacique;
  129.     #[ORM\Column(type'string'length255)]
  130.     private $version;
  131.     /**
  132.      * @var FicheBatimentExemple
  133.      */
  134.     #[ORM\OneToOne(targetEntity\App\Entity\Fiche\FicheBatimentExemple::class, mappedBy'theFicheBatiment'cascade: ['remove'])]
  135.     private $theFicheBatimentExemple;
  136.     public function deleteXmlFile()
  137.     {
  138.         $absolutePathXml self::PUBLIC_DIR '/' $this->getIdFichier();
  139.         if (file_exists($absolutePathXml)) {
  140.             unlink($absolutePathXml);
  141.         }
  142.     }
  143.     public function moveXmlFile()
  144.     {
  145.         $absolutePathXml self::PUBLIC_DIR '/' $this->getIdFichier();
  146.         $absolutePathArchiveXml str_replace('IMPORTS''IMPORTS/SUPPRIMEES'$absolutePathXml);
  147.         if (file_exists($absolutePathXml)) {
  148.             rename($absolutePathXml$absolutePathArchiveXml);
  149.         }
  150.     }
  151.     /**
  152.      * @param mixed $id
  153.      */
  154.     public function setId($id): void
  155.     {
  156.         $this->id $id;
  157.     }
  158.     function getNomDuProjetCourt() {
  159.         return $this->nomDuProjetCourt;
  160.     }
  161.     function getNomUsageCourt() {
  162.         return $this->nomUsageCourt;
  163.     }
  164.     function setNomDuProjetCourt($nomDuProjetCourt): void {
  165.         $this->nomDuProjetCourt $nomDuProjetCourt;
  166.     }
  167.     function setNomUsageCourt($nomUsageCourt): void {
  168.         $this->nomUsageCourt $nomUsageCourt;
  169.     }
  170.     public function getId(): ?int {
  171.         return $this->id;
  172.     }
  173.     public function getSurfaceShon(): ?float {
  174.         return $this->surfaceShon;
  175.     }
  176.     public function setSurfaceShon(?float $surfaceShon): self {
  177.         $this->surfaceShon $surfaceShon;
  178.         return $this;
  179.     }
  180.     public function getBbioTotalAnnuel(): ?float {
  181.         return $this->bbioTotalAnnuel;
  182.     }
  183.     public function setBbioTotalAnnuel(?float $bbioTotalAnnuel): self {
  184.         $this->bbioTotalAnnuel $bbioTotalAnnuel;
  185.         return $this;
  186.     }
  187.     public function getBbiomax(): ?float {
  188.         return $this->bbiomax;
  189.     }
  190.     public function setBbiomax(?float $bbiomax): self {
  191.         $this->bbiomax $bbiomax;
  192.         return $this;
  193.     }
  194.     public function getBbioChaudAnnuel(): ?float {
  195.         return $this->bbioChaudAnnuel;
  196.     }
  197.     public function setBbioChaudAnnuel(?float $bbioChaudAnnuel): self {
  198.         $this->bbioChaudAnnuel $bbioChaudAnnuel;
  199.         return $this;
  200.     }
  201.     public function getBbioFroidAnnuel(): ?float {
  202.         return $this->bbioFroidAnnuel;
  203.     }
  204.     public function setBbioFroidAnnuel(?float $bbioFroidAnnuel): self {
  205.         $this->bbioFroidAnnuel $bbioFroidAnnuel;
  206.         return $this;
  207.     }
  208.     public function getBbioEclairageAnnuel(): ?float {
  209.         return $this->bbioEclairageAnnuel;
  210.     }
  211.     public function setBbioEclairageAnnuel(?float $bbioEclairageAnnuel): self {
  212.         $this->bbioEclairageAnnuel $bbioEclairageAnnuel;
  213.         return $this;
  214.     }
  215.     public function getRatioPsi(): ?float {
  216.         return $this->ratioPsi;
  217.     }
  218.     public function setRatioPsi(?float $ratioPsi): self {
  219.         $this->ratioPsi $ratioPsi;
  220.         return $this;
  221.     }
  222.     public function getQ4PaSurf(): ?float {
  223.         return $this->q4PaSurf;
  224.     }
  225.     public function setQ4PaSurf(?float $q4PaSurf): self {
  226.         $this->q4PaSurf $q4PaSurf;
  227.         return $this;
  228.     }
  229.     public function getTotalSurfaceOpaque(): ?float {
  230.         return $this->totalSurfaceOpaque;
  231.     }
  232.     public function setTotalSurfaceOpaque(?float $totalSurfaceOpaque): self {
  233.         $this->totalSurfaceOpaque $totalSurfaceOpaque;
  234.         return $this;
  235.     }
  236.     public function getTotalSurfaceVitree(): ?float {
  237.         return $this->totalSurfaceVitree;
  238.     }
  239.     public function setTotalSurfaceVitree(?float $totalSurfaceVitree): self {
  240.         $this->totalSurfaceVitree $totalSurfaceVitree;
  241.         return $this;
  242.     }
  243.     public function getVolumeGroupe(): ?float {
  244.         return $this->volumeGroupe;
  245.     }
  246.     public function setVolumeGroupe(?float $volumeGroupe): self {
  247.         $this->volumeGroupe $volumeGroupe;
  248.         return $this;
  249.     }
  250.     public function getSurfaceTotaleEnveloppe(): ?float {
  251.         return $this->surfaceTotaleEnveloppe;
  252.     }
  253.     public function setSurfaceTotaleEnveloppe(?float $surfaceTotaleEnveloppe): self {
  254.         $this->surfaceTotaleEnveloppe $surfaceTotaleEnveloppe;
  255.         return $this;
  256.     }
  257.     public function getCompacite(): ?float {
  258.         return $this->compacite;
  259.     }
  260.     public function setCompacite(?float $compacite): self {
  261.         $this->compacite $compacite;
  262.         return $this;
  263.     }
  264.     public function getTauxVitrage(): ?float {
  265.         return $this->tauxVitrage;
  266.     }
  267.     public function setTauxVitrage(?float $tauxVitrage): self {
  268.         $this->tauxVitrage $tauxVitrage;
  269.         return $this;
  270.     }
  271.     public function getUwMoyen(): ?float {
  272.         return $this->uwMoyen;
  273.     }
  274.     public function setUwMoyen(?float $uwMoyen): self {
  275.         $this->uwMoyen $uwMoyen;
  276.         return $this;
  277.     }
  278.     public function getUsageZone(): ?float {
  279.         return $this->usageZone;
  280.     }
  281.     public function setUsageZone(?float $usageZone): self {
  282.         $this->usageZone $usageZone;
  283.         return $this;
  284.     }
  285.     public function getGainBbio(): ?float {
  286.         return $this->gainBbio;
  287.     }
  288.     public function setGainBbio(?float $gainBbio): self {
  289.         $this->gainBbio $gainBbio;
  290.         return $this;
  291.     }
  292.     public function getCepProjet(): ?float {
  293.         return $this->cepProjet;
  294.     }
  295.     public function setCepProjet(?float $cepProjet): self {
  296.         $this->cepProjet $cepProjet;
  297.         return $this;
  298.     }
  299.     public function getCepMax(): ?float {
  300.         return $this->cepMax;
  301.     }
  302.     public function setCepMax(?float $cepMax): self {
  303.         $this->cepMax $cepMax;
  304.         return $this;
  305.     }
  306.     public function getGainCep(): ?float {
  307.         return $this->gainCep;
  308.     }
  309.     public function setGainCep(?float $gainCep): self {
  310.         $this->gainCep $gainCep;
  311.         return $this;
  312.     }
  313.     public function getCepCh(): ?float {
  314.         return $this->cepCh;
  315.     }
  316.     public function setCepCh(?float $cepCh): self {
  317.         $this->cepCh $cepCh;
  318.         return $this;
  319.     }
  320.     public function getCepFr(): ?float {
  321.         return $this->cepFr;
  322.     }
  323.     public function setCepFr(?float $cepFr): self {
  324.         $this->cepFr $cepFr;
  325.         return $this;
  326.     }
  327.     public function getCepECS(): ?float {
  328.         return $this->cepECS;
  329.     }
  330.     public function setCepECS(?float $cepECS): self {
  331.         $this->cepECS $cepECS;
  332.         return $this;
  333.     }
  334.     public function getCepEcl(): ?float {
  335.         return $this->cepEcl;
  336.     }
  337.     public function setCepEcl(?float $cepEcl): self {
  338.         $this->cepEcl $cepEcl;
  339.         return $this;
  340.     }
  341.     public function getCepVentil(): ?float {
  342.         return $this->cepVentil;
  343.     }
  344.     public function setCepVentil(?float $cepVentil): self {
  345.         $this->cepVentil $cepVentil;
  346.         return $this;
  347.     }
  348.     public function getCepDistrib(): ?float {
  349.         return $this->cepDistrib;
  350.     }
  351.     public function setCepDistrib(?float $cepDistrib): self {
  352.         $this->cepDistrib $cepDistrib;
  353.         return $this;
  354.     }
  355.     public function getCepPV(): ?float {
  356.         return $this->cepPV;
  357.     }
  358.     public function setCepPV(?float $cepPV): self {
  359.         $this->cepPV $cepPV;
  360.         return $this;
  361.     }
  362.     public function getAepenr(): ?float {
  363.         return $this->aepenr;
  364.     }
  365.     public function setAepenr(?float $aepenr): self {
  366.         $this->aepenr $aepenr;
  367.         return $this;
  368.     }
  369.     public function getIdFiche(): ?string {
  370.         return $this->idFiche;
  371.     }
  372.     public function setIdFiche(string $idFiche): self {
  373.         $this->idFiche $idFiche;
  374.         return $this;
  375.     }
  376.     public function getNomDuProjet(): ?string {
  377.         return $this->nomDuProjet;
  378.     }
  379.     public function setNomDuProjet(?string $nomDuProjet): self {
  380.         $this->nomDuProjet $nomDuProjet;
  381.         return $this;
  382.     }
  383.     public function getMoa(): ?string {
  384.         return $this->moa;
  385.     }
  386.     public function setMoa(?string $moa): self {
  387.         $this->moa $moa;
  388.         return $this;
  389.     }
  390.     public function getVille(): ?string {
  391.         return $this->ville;
  392.     }
  393.     public function setVille(?string $ville): self {
  394.         $this->ville $ville;
  395.         return $this;
  396.     }
  397.     public function getDepartement(): ?string {
  398.         return $this->departement;
  399.     }
  400.     public function setDepartement(?string $departement): self {
  401.         $this->departement $departement;
  402.         return $this;
  403.     }
  404.     public function getTime(): ?float {
  405.         return $this->time;
  406.     }
  407.     public function setTime(?float $time): self {
  408.         $this->time $time;
  409.         return $this;
  410.     }
  411.     public function getNomInitialFichier(): ?string {
  412.         return $this->nomInitialFichier;
  413.     }
  414.     public function setNomInitialFichier(?string $nomInitialFichier): self {
  415.         $this->nomInitialFichier $nomInitialFichier;
  416.         return $this;
  417.     }
  418.     public function getIdFichier(): ?string {
  419.         return $this->idFichier;
  420.     }
  421.     public function setIdFichier(?string $idFichier): self {
  422.         $this->idFichier $idFichier;
  423.         return $this;
  424.     }
  425.     public function getZoneClimatique(): ?string {
  426.         return $this->zoneClimatique;
  427.     }
  428.     public function setZoneClimatique(?string $zoneClimatique): self {
  429.         $this->zoneClimatique $zoneClimatique;
  430.         return $this;
  431.     }
  432.     public function getTauxBrassageBBIO(): ?float {
  433.         return $this->tauxBrassageBBIO;
  434.     }
  435.     public function setTauxBrassageBBIO(?float $tauxBrassageBBIO): self {
  436.         $this->tauxBrassageBBIO $tauxBrassageBBIO;
  437.         return $this;
  438.     }
  439.     public function getPartBaiesSudBatiment(): ?float {
  440.         return $this->partBaiesSudBatiment;
  441.     }
  442.     public function setPartBaiesSudBatiment(?float $partBaiesSudBatiment): self {
  443.         $this->partBaiesSudBatiment $partBaiesSudBatiment;
  444.         return $this;
  445.     }
  446.     public function getNomUsage(): ?string {
  447.         return $this->nomUsage;
  448.     }
  449.     public function setNomUsage(?string $nomUsage): self {
  450.         $this->nomUsage $nomUsage;
  451.         return $this;
  452.     }
  453.     /**
  454.      * @return User
  455.      */
  456.     public function getTheUser(): ?User
  457.     {
  458.         return $this->theUser;
  459.     }
  460.     /**
  461.      * @param User $theUser
  462.      */
  463.     public function setTheUser(?User $theUser): void
  464.     {
  465.         $this->theUser $theUser;
  466.     }
  467.     public function getRatioEclNat(): ?float
  468.     {
  469.         return $this->RatioEclNat;
  470.     }
  471.     public function setRatioEclNat(?float $RatioEclNat): self
  472.     {
  473.         $this->RatioEclNat $RatioEclNat;
  474.         return $this;
  475.     }
  476.     public function getMasqueMoyen(): ?float
  477.     {
  478.         return $this->MasqueMoyen;
  479.     }
  480.     public function setMasqueMoyen(?float $MasqueMoyen): self
  481.     {
  482.         $this->MasqueMoyen $MasqueMoyen;
  483.         return $this;
  484.     }
  485.     public function getQvRepOccBatiment(): ?float
  486.     {
  487.         return $this->QvRepOccBatiment;
  488.     }
  489.     public function setQvRepOccBatiment(?float $QvRepOccBatiment): self
  490.     {
  491.         $this->QvRepOccBatiment $QvRepOccBatiment;
  492.         return $this;
  493.     }
  494.     public function getQvSoufOccBatiment(): ?float
  495.     {
  496.         return $this->QvSoufOccBatiment;
  497.     }
  498.     public function setQvSoufOccBatiment(?float $QvSoufOccBatiment): self
  499.     {
  500.         $this->QvSoufOccBatiment $QvSoufOccBatiment;
  501.         return $this;
  502.     }
  503.     public function getPVentSoufBatiment(): ?float
  504.     {
  505.         return $this->PVentSoufBatiment;
  506.     }
  507.     public function setPVentSoufBatiment(?float $PVentSoufBatiment): self
  508.     {
  509.         $this->PVentSoufBatiment $PVentSoufBatiment;
  510.         return $this;
  511.     }
  512.     public function getPVentRepBatiment(): ?float
  513.     {
  514.         return $this->PVentRepBatiment;
  515.     }
  516.     public function setPVentRepBatiment(?float $PVentRepBatiment): self
  517.     {
  518.         $this->PVentRepBatiment $PVentRepBatiment;
  519.         return $this;
  520.     }
  521.     public function getPVentSpecifiqueBatiment(): ?float
  522.     {
  523.         return $this->PVentSpecifiqueBatiment;
  524.     }
  525.     public function setPVentSpecifiqueBatiment(?float $PVentSpecifiqueBatiment): self
  526.     {
  527.         $this->PVentSpecifiqueBatiment $PVentSpecifiqueBatiment;
  528.         return $this;
  529.     }
  530.     public function getCombinaisonCompaciteTauxVitrage(): ?float
  531.     {
  532.         return $this->CombinaisonCompaciteTauxVitrage;
  533.     }
  534.     public function setCombinaisonCompaciteTauxVitrage(?float $CombinaisonCompaciteTauxVitrage): self
  535.     {
  536.         $this->CombinaisonCompaciteTauxVitrage $CombinaisonCompaciteTauxVitrage;
  537.         return $this;
  538.     }
  539.     public function getCombinaisonCompaciteTauxVitrageBrassageBBIO(): ?float
  540.     {
  541.         return $this->CombinaisonCompaciteTauxVitrageBrassageBBIO;
  542.     }
  543.     public function setCombinaisonCompaciteTauxVitrageBrassageBBIO(?float $CombinaisonCompaciteTauxVitrageBrassageBBIO): self
  544.     {
  545.         $this->CombinaisonCompaciteTauxVitrageBrassageBBIO $CombinaisonCompaciteTauxVitrageBrassageBBIO;
  546.         return $this;
  547.     }
  548.     public function getDeperditionBatiment(): ?float
  549.     {
  550.         return $this->DeperditionBatiment;
  551.     }
  552.     public function setDeperditionBatiment(?float $DeperditionBatiment): self
  553.     {
  554.         $this->DeperditionBatiment $DeperditionBatiment;
  555.         return $this;
  556.     }
  557.     public function getDeperditionSurfacique(): ?float
  558.     {
  559.         return $this->DeperditionSurfacique;
  560.     }
  561.     public function setDeperditionSurfacique(?float $DeperditionSurfacique): self
  562.     {
  563.         $this->DeperditionSurfacique $DeperditionSurfacique;
  564.         return $this;
  565.     }
  566.     public function getVersion(): ?string
  567.     {
  568.         return $this->version;
  569.     }
  570.     public function setVersion(string $version): self
  571.     {
  572.         $this->version $version;
  573.         return $this;
  574.     }
  575.     /**
  576.      * @return FicheBatimentExemple
  577.      */
  578.     public function getTheFicheBatimentExemple(): ?FicheBatimentExemple
  579.     {
  580.         return $this->theFicheBatimentExemple;
  581.     }
  582.     /**
  583.      * @param FicheBatimentExemple $theFicheBatimentExemple
  584.      */
  585.     public function setTheFicheBatimentExemple(?FicheBatimentExemple $theFicheBatimentExemple): self
  586.     {
  587.         $this->theFicheBatimentExemple $theFicheBatimentExemple;
  588.         return $this;
  589.     }
  590. }