<?php
namespace App\Entity\Fiche;
use App\Entity\User\User;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Serializer\Annotation\Ignore;
#[ORM\Entity(repositoryClass: \App\Repository\Fiche\FicheBatimentRepository::class)]
class FicheBatiment {
const PUBLIC_DIR = __DIR__ . '/../../../public';
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $idFiche;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $nomDuProjet;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $nomDuProjetCourt;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $nomUsageCourt;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $moa;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $ville;
#[ORM\Column(type: 'string', length: 3, nullable: true)]
private $departement;
#[ORM\Column(type: 'float', nullable: true)]
private $time;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $nomInitialFichier;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $idFichier;
#[ORM\Column(type: 'float', nullable: true)]
private $surfaceShon;
#[ORM\Column(type: 'float', nullable: true)]
private $bbioTotalAnnuel;
#[ORM\Column(type: 'float', nullable: true)]
private $bbiomax;
#[ORM\Column(type: 'float', nullable: true)]
private $bbioChaudAnnuel;
#[ORM\Column(type: 'float', nullable: true)]
private $bbioFroidAnnuel;
#[ORM\Column(type: 'float', nullable: true)]
private $bbioEclairageAnnuel;
#[ORM\Column(type: 'float', nullable: true)]
private $ratioPsi;
#[ORM\Column(type: 'float', nullable: true)]
private $q4PaSurf;
#[ORM\Column(type: 'float', nullable: true)]
private $totalSurfaceOpaque;
#[ORM\Column(type: 'float', nullable: true)]
private $totalSurfaceVitree;
#[ORM\Column(type: 'float', nullable: true)]
private $volumeGroupe;
#[ORM\Column(type: 'float', nullable: true)]
private $surfaceTotaleEnveloppe;
#[ORM\Column(type: 'float', nullable: true)]
private $compacite;
#[ORM\Column(type: 'float', nullable: true)]
private $tauxVitrage;
#[ORM\Column(type: 'float', nullable: true)]
private $uwMoyen;
#[ORM\Column(type: 'float', nullable: true)]
private $usageZone;
#[ORM\Column(type: 'float', nullable: true)]
private $gainBbio;
#[ORM\Column(type: 'float', nullable: true)]
private $cepProjet;
#[ORM\Column(type: 'float', nullable: true)]
private $cepMax;
#[ORM\Column(type: 'float', nullable: true)]
private $gainCep;
#[ORM\Column(type: 'float', nullable: true)]
private $cepCh;
#[ORM\Column(type: 'float', nullable: true)]
private $cepFr;
#[ORM\Column(type: 'float', nullable: true)]
private $cepECS;
#[ORM\Column(type: 'float', nullable: true)]
private $cepEcl;
#[ORM\Column(type: 'float', nullable: true)]
private $cepVentil;
#[ORM\Column(type: 'float', nullable: true)]
private $cepDistrib;
#[ORM\Column(type: 'float', nullable: true)]
private $cepPV;
#[ORM\Column(type: 'float', nullable: true)]
private $aepenr;
#[ORM\Column(type: 'string', length: 3, nullable: true)]
private $zoneClimatique;
#[ORM\Column(type: 'float', nullable: true)]
private $tauxBrassageBBIO;
#[ORM\Column(type: 'float', nullable: true)]
private $partBaiesSudBatiment;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $nomUsage;
/**
* @var User
*/
#[ORM\ManyToOne(targetEntity: \App\Entity\User\User::class, inversedBy: 'listFicheBatiment')]
#[ORM\JoinColumn(nullable: true)] // /**
#[Ignore]
private $theUser;
#[ORM\Column(type: 'float', nullable: true)]
private $RatioEclNat;
#[ORM\Column(type: 'float', nullable: true)]
private $MasqueMoyen;
#[ORM\Column(type: 'float', nullable: true)]
private $QvRepOccBatiment;
#[ORM\Column(type: 'float', nullable: true)]
private $QvSoufOccBatiment;
#[ORM\Column(type: 'float', nullable: true)]
private $PVentSoufBatiment;
#[ORM\Column(type: 'float', nullable: true)]
private $PVentRepBatiment;
#[ORM\Column(type: 'float', nullable: true)]
private $PVentSpecifiqueBatiment;
#[ORM\Column(type: 'float', nullable: true)]
private $CombinaisonCompaciteTauxVitrage;
#[ORM\Column(type: 'float', nullable: true)]
private $CombinaisonCompaciteTauxVitrageBrassageBBIO;
#[ORM\Column(type: 'float', nullable: true)]
private $DeperditionBatiment;
#[ORM\Column(type: 'float', nullable: true)]
private $DeperditionSurfacique;
#[ORM\Column(type: 'string', length: 255)]
private $version;
/**
* @var FicheBatimentExemple
*/
#[ORM\OneToOne(targetEntity: \App\Entity\Fiche\FicheBatimentExemple::class, mappedBy: 'theFicheBatiment', cascade: ['remove'])]
private $theFicheBatimentExemple;
public function deleteXmlFile()
{
$absolutePathXml = self::PUBLIC_DIR . '/' . $this->getIdFichier();
if (file_exists($absolutePathXml)) {
unlink($absolutePathXml);
}
}
public function moveXmlFile()
{
$absolutePathXml = self::PUBLIC_DIR . '/' . $this->getIdFichier();
$absolutePathArchiveXml = str_replace('IMPORTS', 'IMPORTS/SUPPRIMEES', $absolutePathXml);
if (file_exists($absolutePathXml)) {
rename($absolutePathXml, $absolutePathArchiveXml);
}
}
/**
* @param mixed $id
*/
public function setId($id): void
{
$this->id = $id;
}
function getNomDuProjetCourt() {
return $this->nomDuProjetCourt;
}
function getNomUsageCourt() {
return $this->nomUsageCourt;
}
function setNomDuProjetCourt($nomDuProjetCourt): void {
$this->nomDuProjetCourt = $nomDuProjetCourt;
}
function setNomUsageCourt($nomUsageCourt): void {
$this->nomUsageCourt = $nomUsageCourt;
}
public function getId(): ?int {
return $this->id;
}
public function getSurfaceShon(): ?float {
return $this->surfaceShon;
}
public function setSurfaceShon(?float $surfaceShon): self {
$this->surfaceShon = $surfaceShon;
return $this;
}
public function getBbioTotalAnnuel(): ?float {
return $this->bbioTotalAnnuel;
}
public function setBbioTotalAnnuel(?float $bbioTotalAnnuel): self {
$this->bbioTotalAnnuel = $bbioTotalAnnuel;
return $this;
}
public function getBbiomax(): ?float {
return $this->bbiomax;
}
public function setBbiomax(?float $bbiomax): self {
$this->bbiomax = $bbiomax;
return $this;
}
public function getBbioChaudAnnuel(): ?float {
return $this->bbioChaudAnnuel;
}
public function setBbioChaudAnnuel(?float $bbioChaudAnnuel): self {
$this->bbioChaudAnnuel = $bbioChaudAnnuel;
return $this;
}
public function getBbioFroidAnnuel(): ?float {
return $this->bbioFroidAnnuel;
}
public function setBbioFroidAnnuel(?float $bbioFroidAnnuel): self {
$this->bbioFroidAnnuel = $bbioFroidAnnuel;
return $this;
}
public function getBbioEclairageAnnuel(): ?float {
return $this->bbioEclairageAnnuel;
}
public function setBbioEclairageAnnuel(?float $bbioEclairageAnnuel): self {
$this->bbioEclairageAnnuel = $bbioEclairageAnnuel;
return $this;
}
public function getRatioPsi(): ?float {
return $this->ratioPsi;
}
public function setRatioPsi(?float $ratioPsi): self {
$this->ratioPsi = $ratioPsi;
return $this;
}
public function getQ4PaSurf(): ?float {
return $this->q4PaSurf;
}
public function setQ4PaSurf(?float $q4PaSurf): self {
$this->q4PaSurf = $q4PaSurf;
return $this;
}
public function getTotalSurfaceOpaque(): ?float {
return $this->totalSurfaceOpaque;
}
public function setTotalSurfaceOpaque(?float $totalSurfaceOpaque): self {
$this->totalSurfaceOpaque = $totalSurfaceOpaque;
return $this;
}
public function getTotalSurfaceVitree(): ?float {
return $this->totalSurfaceVitree;
}
public function setTotalSurfaceVitree(?float $totalSurfaceVitree): self {
$this->totalSurfaceVitree = $totalSurfaceVitree;
return $this;
}
public function getVolumeGroupe(): ?float {
return $this->volumeGroupe;
}
public function setVolumeGroupe(?float $volumeGroupe): self {
$this->volumeGroupe = $volumeGroupe;
return $this;
}
public function getSurfaceTotaleEnveloppe(): ?float {
return $this->surfaceTotaleEnveloppe;
}
public function setSurfaceTotaleEnveloppe(?float $surfaceTotaleEnveloppe): self {
$this->surfaceTotaleEnveloppe = $surfaceTotaleEnveloppe;
return $this;
}
public function getCompacite(): ?float {
return $this->compacite;
}
public function setCompacite(?float $compacite): self {
$this->compacite = $compacite;
return $this;
}
public function getTauxVitrage(): ?float {
return $this->tauxVitrage;
}
public function setTauxVitrage(?float $tauxVitrage): self {
$this->tauxVitrage = $tauxVitrage;
return $this;
}
public function getUwMoyen(): ?float {
return $this->uwMoyen;
}
public function setUwMoyen(?float $uwMoyen): self {
$this->uwMoyen = $uwMoyen;
return $this;
}
public function getUsageZone(): ?float {
return $this->usageZone;
}
public function setUsageZone(?float $usageZone): self {
$this->usageZone = $usageZone;
return $this;
}
public function getGainBbio(): ?float {
return $this->gainBbio;
}
public function setGainBbio(?float $gainBbio): self {
$this->gainBbio = $gainBbio;
return $this;
}
public function getCepProjet(): ?float {
return $this->cepProjet;
}
public function setCepProjet(?float $cepProjet): self {
$this->cepProjet = $cepProjet;
return $this;
}
public function getCepMax(): ?float {
return $this->cepMax;
}
public function setCepMax(?float $cepMax): self {
$this->cepMax = $cepMax;
return $this;
}
public function getGainCep(): ?float {
return $this->gainCep;
}
public function setGainCep(?float $gainCep): self {
$this->gainCep = $gainCep;
return $this;
}
public function getCepCh(): ?float {
return $this->cepCh;
}
public function setCepCh(?float $cepCh): self {
$this->cepCh = $cepCh;
return $this;
}
public function getCepFr(): ?float {
return $this->cepFr;
}
public function setCepFr(?float $cepFr): self {
$this->cepFr = $cepFr;
return $this;
}
public function getCepECS(): ?float {
return $this->cepECS;
}
public function setCepECS(?float $cepECS): self {
$this->cepECS = $cepECS;
return $this;
}
public function getCepEcl(): ?float {
return $this->cepEcl;
}
public function setCepEcl(?float $cepEcl): self {
$this->cepEcl = $cepEcl;
return $this;
}
public function getCepVentil(): ?float {
return $this->cepVentil;
}
public function setCepVentil(?float $cepVentil): self {
$this->cepVentil = $cepVentil;
return $this;
}
public function getCepDistrib(): ?float {
return $this->cepDistrib;
}
public function setCepDistrib(?float $cepDistrib): self {
$this->cepDistrib = $cepDistrib;
return $this;
}
public function getCepPV(): ?float {
return $this->cepPV;
}
public function setCepPV(?float $cepPV): self {
$this->cepPV = $cepPV;
return $this;
}
public function getAepenr(): ?float {
return $this->aepenr;
}
public function setAepenr(?float $aepenr): self {
$this->aepenr = $aepenr;
return $this;
}
public function getIdFiche(): ?string {
return $this->idFiche;
}
public function setIdFiche(string $idFiche): self {
$this->idFiche = $idFiche;
return $this;
}
public function getNomDuProjet(): ?string {
return $this->nomDuProjet;
}
public function setNomDuProjet(?string $nomDuProjet): self {
$this->nomDuProjet = $nomDuProjet;
return $this;
}
public function getMoa(): ?string {
return $this->moa;
}
public function setMoa(?string $moa): self {
$this->moa = $moa;
return $this;
}
public function getVille(): ?string {
return $this->ville;
}
public function setVille(?string $ville): self {
$this->ville = $ville;
return $this;
}
public function getDepartement(): ?string {
return $this->departement;
}
public function setDepartement(?string $departement): self {
$this->departement = $departement;
return $this;
}
public function getTime(): ?float {
return $this->time;
}
public function setTime(?float $time): self {
$this->time = $time;
return $this;
}
public function getNomInitialFichier(): ?string {
return $this->nomInitialFichier;
}
public function setNomInitialFichier(?string $nomInitialFichier): self {
$this->nomInitialFichier = $nomInitialFichier;
return $this;
}
public function getIdFichier(): ?string {
return $this->idFichier;
}
public function setIdFichier(?string $idFichier): self {
$this->idFichier = $idFichier;
return $this;
}
public function getZoneClimatique(): ?string {
return $this->zoneClimatique;
}
public function setZoneClimatique(?string $zoneClimatique): self {
$this->zoneClimatique = $zoneClimatique;
return $this;
}
public function getTauxBrassageBBIO(): ?float {
return $this->tauxBrassageBBIO;
}
public function setTauxBrassageBBIO(?float $tauxBrassageBBIO): self {
$this->tauxBrassageBBIO = $tauxBrassageBBIO;
return $this;
}
public function getPartBaiesSudBatiment(): ?float {
return $this->partBaiesSudBatiment;
}
public function setPartBaiesSudBatiment(?float $partBaiesSudBatiment): self {
$this->partBaiesSudBatiment = $partBaiesSudBatiment;
return $this;
}
public function getNomUsage(): ?string {
return $this->nomUsage;
}
public function setNomUsage(?string $nomUsage): self {
$this->nomUsage = $nomUsage;
return $this;
}
/**
* @return User
*/
public function getTheUser(): ?User
{
return $this->theUser;
}
/**
* @param User $theUser
*/
public function setTheUser(?User $theUser): void
{
$this->theUser = $theUser;
}
public function getRatioEclNat(): ?float
{
return $this->RatioEclNat;
}
public function setRatioEclNat(?float $RatioEclNat): self
{
$this->RatioEclNat = $RatioEclNat;
return $this;
}
public function getMasqueMoyen(): ?float
{
return $this->MasqueMoyen;
}
public function setMasqueMoyen(?float $MasqueMoyen): self
{
$this->MasqueMoyen = $MasqueMoyen;
return $this;
}
public function getQvRepOccBatiment(): ?float
{
return $this->QvRepOccBatiment;
}
public function setQvRepOccBatiment(?float $QvRepOccBatiment): self
{
$this->QvRepOccBatiment = $QvRepOccBatiment;
return $this;
}
public function getQvSoufOccBatiment(): ?float
{
return $this->QvSoufOccBatiment;
}
public function setQvSoufOccBatiment(?float $QvSoufOccBatiment): self
{
$this->QvSoufOccBatiment = $QvSoufOccBatiment;
return $this;
}
public function getPVentSoufBatiment(): ?float
{
return $this->PVentSoufBatiment;
}
public function setPVentSoufBatiment(?float $PVentSoufBatiment): self
{
$this->PVentSoufBatiment = $PVentSoufBatiment;
return $this;
}
public function getPVentRepBatiment(): ?float
{
return $this->PVentRepBatiment;
}
public function setPVentRepBatiment(?float $PVentRepBatiment): self
{
$this->PVentRepBatiment = $PVentRepBatiment;
return $this;
}
public function getPVentSpecifiqueBatiment(): ?float
{
return $this->PVentSpecifiqueBatiment;
}
public function setPVentSpecifiqueBatiment(?float $PVentSpecifiqueBatiment): self
{
$this->PVentSpecifiqueBatiment = $PVentSpecifiqueBatiment;
return $this;
}
public function getCombinaisonCompaciteTauxVitrage(): ?float
{
return $this->CombinaisonCompaciteTauxVitrage;
}
public function setCombinaisonCompaciteTauxVitrage(?float $CombinaisonCompaciteTauxVitrage): self
{
$this->CombinaisonCompaciteTauxVitrage = $CombinaisonCompaciteTauxVitrage;
return $this;
}
public function getCombinaisonCompaciteTauxVitrageBrassageBBIO(): ?float
{
return $this->CombinaisonCompaciteTauxVitrageBrassageBBIO;
}
public function setCombinaisonCompaciteTauxVitrageBrassageBBIO(?float $CombinaisonCompaciteTauxVitrageBrassageBBIO): self
{
$this->CombinaisonCompaciteTauxVitrageBrassageBBIO = $CombinaisonCompaciteTauxVitrageBrassageBBIO;
return $this;
}
public function getDeperditionBatiment(): ?float
{
return $this->DeperditionBatiment;
}
public function setDeperditionBatiment(?float $DeperditionBatiment): self
{
$this->DeperditionBatiment = $DeperditionBatiment;
return $this;
}
public function getDeperditionSurfacique(): ?float
{
return $this->DeperditionSurfacique;
}
public function setDeperditionSurfacique(?float $DeperditionSurfacique): self
{
$this->DeperditionSurfacique = $DeperditionSurfacique;
return $this;
}
public function getVersion(): ?string
{
return $this->version;
}
public function setVersion(string $version): self
{
$this->version = $version;
return $this;
}
/**
* @return FicheBatimentExemple
*/
public function getTheFicheBatimentExemple(): ?FicheBatimentExemple
{
return $this->theFicheBatimentExemple;
}
/**
* @param FicheBatimentExemple $theFicheBatimentExemple
*/
public function setTheFicheBatimentExemple(?FicheBatimentExemple $theFicheBatimentExemple): self
{
$this->theFicheBatimentExemple = $theFicheBatimentExemple;
return $this;
}
}