<?php
namespace App\Entity;
use App\Entity\User\User;
use App\Repository\PluvioDatabaseRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: PluvioDatabaseRepository::class)]
class PluvioDatabase
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'string', length: 10000, nullable: true)]
private $besoinEau;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $nomSurface;
#[ORM\Column(type: 'float', nullable: true)]
private $surfaceRecuperee;
#[ORM\Column(type: 'float', nullable: true)]
private $rendementToiture;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $nomSurface2;
#[ORM\Column(type: 'float', nullable: true)]
private $surfaceRecuperee2;
#[ORM\Column(type: 'float', nullable: true)]
private $rendementToiture2;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $nomSurface3;
#[ORM\Column(type: 'float', nullable: true)]
private $surfaceRecuperee3;
#[ORM\Column(type: 'float', nullable: true)]
private $rendementToiture3;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $climat;
#[ORM\Column(type: 'float', nullable: true)]
private $stationMeteo;
#[ORM\Column(type: 'float', nullable: true)]
private $nbreUtilisateur;
#[ORM\Column(type: 'float', nullable: true)]
private $volumeUtilisateur;
#[ORM\Column(type: 'float', nullable: true)]
private $volumeParUtilisation;
#[ORM\Column(type: 'float', nullable: true)]
private $scenarioUtilisation;
#[ORM\Column(type: 'float', nullable: true)]
private $ru;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $typePlante;
#[ORM\Column(type: 'float', nullable: true)]
private $profondeurTerre;
#[ORM\Column(type: 'float', nullable: true)]
private $arrosage;
#[ORM\Column(type: 'float', nullable: true)]
private $volumeCuve;
#[ORM\Column(type: 'float', nullable: true)]
private $tauxObjectif;
#[ORM\Column(type: 'float', nullable: true)]
private $coutEau;
#[ORM\Column(type: 'float', nullable: true)]
private $coutPompe;
#[ORM\Column(type: 'float', nullable: true)]
private $coutVolume;
#[ORM\Column(type: 'float', nullable: true)]
private $choixVolume;
#[ORM\Column(type: 'float', nullable: true)]
private $coutVolume2;
#[ORM\Column(type: 'float', nullable: true)]
private $choixVolume2;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $nomDuProjet;
#[ORM\Column(type: 'float', nullable: true)]
private $sArrosage;
#[ORM\ManyToOne(targetEntity: User::class)]
private $theUser;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $time;
/**
* @var string
*/
#[ORM\Column(type: 'text', nullable: true)]
private $graphData;
#[ORM\Column(type: 'float', nullable: true)]
private $tauxRaccordement;
public function getGraphData(): ?array {
return json_decode($this->graphData,true);
}
public function setGraphData(?array $graphData): self {
$this->graphData = json_encode($graphData);
return $this;
}
#[ORM\Column(type: 'boolean', nullable: true)]
private $certivea;
#[ORM\Column(length: 255, nullable: true)]
private ?string $anneesCalculees = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $stationAPI = null;
public function getCertivea(): ?bool
{
return $this->certivea;
}
public function setCertivea(?bool $certivea): self
{
$this->certivea = $certivea;
return $this;
}
public function getNomSurface(): ?string
{
return $this->nomSurface;
}
public function getNomSurface2(): ?string
{
return $this->nomSurface2;
}
public function getNomSurface3(): ?string
{
return $this->nomSurface3;
}
public function setNomSurface(?string $nomSurface): self {
$this->nomSurface = $nomSurface;
return $this;
}
public function setNomSurface2(?string $nomSurface2): self {
$this->nomSurface2 = $nomSurface2;
return $this;
}
public function setNomSurface3(?string $nomSurface3): self {
$this->nomSurface3 = $nomSurface3;
return $this;
}
public function getId(): ?int
{
return $this->id;
}
public function getBesoinEau(): ?string
{
return $this->besoinEau;
}
public function setBesoinEau(?string $besoinEau): self
{
$this->besoinEau = $besoinEau;
return $this;
}
public function getSurfaceRecuperee(): ?float
{
return $this->surfaceRecuperee;
}
public function setSurfaceRecuperee(?float $surfaceRecuperee): self
{
$this->surfaceRecuperee = $surfaceRecuperee;
return $this;
}
public function getRendementToiture(): ?float
{
return $this->rendementToiture;
}
public function setRendementToiture(?float $rendementToiture): self
{
$this->rendementToiture = $rendementToiture;
return $this;
}
public function getSurfaceRecuperee2(): ?float
{
return $this->surfaceRecuperee2;
}
public function setSurfaceRecuperee2(?float $surfaceRecuperee2): self
{
$this->surfaceRecuperee2 = $surfaceRecuperee2;
return $this;
}
public function getRendementToiture2(): ?float
{
return $this->rendementToiture2;
}
public function setRendementToiture2(?float $rendementToiture2): self
{
$this->rendementToiture2 = $rendementToiture2;
return $this;
}
public function getSurfaceRecuperee3(): ?float
{
return $this->surfaceRecuperee3;
}
public function setSurfaceRecuperee3(?float $surfaceRecuperee3): self
{
$this->surfaceRecuperee3 = $surfaceRecuperee3;
return $this;
}
public function getRendementToiture3(): ?float
{
return $this->rendementToiture3;
}
public function setRendementToiture3(?float $rendementToiture3): self
{
$this->rendementToiture3 = $rendementToiture3;
return $this;
}
public function getClimat(): ?string
{
return $this->climat;
}
public function setClimat(?string $climat): self
{
$this->climat = $climat;
return $this;
}
public function getStationMeteo(): ?float
{
return $this->stationMeteo;
}
public function setStationMeteo(?float $stationMeteo): self
{
$this->stationMeteo = $stationMeteo;
return $this;
}
public function getNbreUtilisateur(): ?float
{
return $this->nbreUtilisateur;
}
public function setNbreUtilisateur(?float $nbreUtilisateur): self
{
$this->nbreUtilisateur = $nbreUtilisateur;
return $this;
}
public function getVolumeUtilisateur(): ?float
{
return $this->volumeUtilisateur;
}
public function setVolumeUtilisateur(?float $volumeUtilisateur): self
{
$this->volumeUtilisateur = $volumeUtilisateur;
return $this;
}
public function getVolumeParUtilisation(): ?float
{
return $this->volumeParUtilisation;
}
public function setVolumeParUtilisation(?float $volumeParUtilisation): self
{
$this->volumeParUtilisation = $volumeParUtilisation;
return $this;
}
public function getScenarioUtilisation(): ?float
{
return $this->scenarioUtilisation;
}
public function setScenarioUtilisation(?float $scenarioUtilisation): self
{
$this->scenarioUtilisation = $scenarioUtilisation;
return $this;
}
public function getRu(): ?float
{
return $this->ru;
}
public function setRu(?float $ru): self
{
$this->ru = $ru;
return $this;
}
public function getTypePlante(): ?string
{
return $this->typePlante;
}
public function setTypePlante(?string $typePlante): self
{
$this->typePlante = $typePlante;
return $this;
}
public function getProfondeurTerre(): ?float
{
return $this->profondeurTerre;
}
public function setProfondeurTerre(?float $profondeurTerre): self
{
$this->profondeurTerre = $profondeurTerre;
return $this;
}
public function getArrosage(): ?float
{
return $this->arrosage;
}
public function setArrosage(?float $arrosage): self
{
$this->arrosage = $arrosage;
return $this;
}
public function getVolumeCuve(): ?float
{
return $this->volumeCuve;
}
public function setVolumeCuve(?float $volumeCuve): self
{
$this->volumeCuve = $volumeCuve;
return $this;
}
public function getTauxObjectif(): ?float
{
return $this->tauxObjectif;
}
public function setTauxObjectif(?float $tauxObjectif): self
{
$this->tauxObjectif = $tauxObjectif;
return $this;
}
public function getCoutEau(): ?float
{
return $this->coutEau;
}
public function setCoutEau(?float $coutEau): self
{
$this->coutEau = $coutEau;
return $this;
}
public function getCoutPompe(): ?float
{
return $this->coutPompe;
}
public function setCoutPompe(?float $coutPompe): self
{
$this->coutPompe = $coutPompe;
return $this;
}
public function getCoutVolume(): ?float
{
return $this->coutVolume;
}
public function setCoutVolume(?float $coutVolume): self
{
$this->coutVolume = $coutVolume;
return $this;
}
public function getChoixVolume(): ?float
{
return $this->choixVolume;
}
public function setChoixVolume(?float $choixVolume): self
{
$this->choixVolume = $choixVolume;
return $this;
}
public function getCoutVolume2(): ?float
{
return $this->coutVolume2;
}
public function setCoutVolume2(?float $coutVolume2): self
{
$this->coutVolume2 = $coutVolume2;
return $this;
}
public function getChoixVolume2(): ?float
{
return $this->choixVolume2;
}
public function setChoixVolume2(?float $choixVolume2): self
{
$this->choixVolume2 = $choixVolume2;
return $this;
}
public function getNomDuProjet(): ?string
{
return $this->nomDuProjet;
}
public function setNomDuProjet(?string $nomDuProjet): self
{
$this->nomDuProjet = $nomDuProjet;
return $this;
}
public function getSArrosage(): ?float
{
return $this->sArrosage;
}
public function setSArrosage(?float $sArrosage): self
{
$this->sArrosage = $sArrosage;
return $this;
}
public function getTheUser(): ?User
{
return $this->theUser;
}
public function setTheUser(?User $theUser): self
{
$this->theUser = $theUser;
return $this;
}
public function getTime(): ?string
{
return $this->time;
}
public function setTime(?string $time): self
{
$this->time = $time;
return $this;
}
public function getTauxRaccordement(): ?float
{
return $this->tauxRaccordement;
}
public function setTauxRaccordement(?float $tauxRaccordement): self
{
$this->tauxRaccordement = $tauxRaccordement;
return $this;
}
public function getAnneesCalculees(): ?string
{
return $this->anneesCalculees;
}
public function setAnneesCalculees(?string $anneesCalculees): static
{
$this->anneesCalculees = $anneesCalculees;
return $this;
}
public function getStationAPI(): ?string
{
return $this->stationAPI;
}
public function setStationAPI(?string $stationAPI): static
{
$this->stationAPI = $stationAPI;
return $this;
}
}