src/Entity/PluvioDatabase.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Entity\User\User;
  4. use App\Repository\PluvioDatabaseRepository;
  5. use Doctrine\DBAL\Types\Types;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassPluvioDatabaseRepository::class)]
  8. class PluvioDatabase
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column(type'integer')]
  13.     private $id;
  14.     #[ORM\Column(type'string'length10000nullabletrue)]
  15.     private $besoinEau;
  16.     
  17.     #[ORM\Column(type'string'length255nullabletrue)]
  18.     private $nomSurface;
  19.     
  20.     #[ORM\Column(type'float'nullabletrue)]
  21.     private $surfaceRecuperee;
  22.     #[ORM\Column(type'float'nullabletrue)]
  23.     private $rendementToiture;
  24.     
  25.     #[ORM\Column(type'string'length255nullabletrue)]
  26.     private $nomSurface2;
  27.     
  28.     #[ORM\Column(type'float'nullabletrue)]
  29.     private $surfaceRecuperee2;
  30.     #[ORM\Column(type'float'nullabletrue)]
  31.     private $rendementToiture2;
  32.         
  33.     #[ORM\Column(type'string'length255nullabletrue)]
  34.     private $nomSurface3;
  35.     
  36.         #[ORM\Column(type'float'nullabletrue)]
  37.     private $surfaceRecuperee3;
  38.     #[ORM\Column(type'float'nullabletrue)]
  39.     private $rendementToiture3;
  40.     
  41.     #[ORM\Column(type'string'length255nullabletrue)]
  42.     private $climat;
  43.     #[ORM\Column(type'float'nullabletrue)]
  44.     private $stationMeteo;
  45.     #[ORM\Column(type'float'nullabletrue)]
  46.     private $nbreUtilisateur;
  47.     #[ORM\Column(type'float'nullabletrue)]
  48.     private $volumeUtilisateur;
  49.     #[ORM\Column(type'float'nullabletrue)]
  50.     private $volumeParUtilisation;
  51.     #[ORM\Column(type'float'nullabletrue)]
  52.     private $scenarioUtilisation;
  53.     #[ORM\Column(type'float'nullabletrue)]
  54.     private $ru;
  55.     #[ORM\Column(type'string'length255nullabletrue)]
  56.     private $typePlante;
  57.     #[ORM\Column(type'float'nullabletrue)]
  58.     private $profondeurTerre;
  59.     #[ORM\Column(type'float'nullabletrue)]
  60.     private $arrosage;
  61.     #[ORM\Column(type'float'nullabletrue)]
  62.     private $volumeCuve;
  63.     #[ORM\Column(type'float'nullabletrue)]
  64.     private $tauxObjectif;
  65.     #[ORM\Column(type'float'nullabletrue)]
  66.     private $coutEau;
  67.     #[ORM\Column(type'float'nullabletrue)]
  68.     private $coutPompe;
  69.     #[ORM\Column(type'float'nullabletrue)]
  70.     private $coutVolume;
  71.     #[ORM\Column(type'float'nullabletrue)]
  72.     private $choixVolume;
  73.     #[ORM\Column(type'float'nullabletrue)]
  74.     private $coutVolume2;
  75.     #[ORM\Column(type'float'nullabletrue)]
  76.     private $choixVolume2;
  77.     #[ORM\Column(type'string'length255nullabletrue)]
  78.     private $nomDuProjet;
  79.     #[ORM\Column(type'float'nullabletrue)]
  80.     private $sArrosage;
  81.     #[ORM\ManyToOne(targetEntityUser::class)]
  82.     private $theUser;
  83.     #[ORM\Column(type'string'length255nullabletrue)]
  84.     private $time;
  85.     /**
  86.      * @var string
  87.      */
  88.     #[ORM\Column(type'text'nullabletrue)]
  89.     private $graphData;
  90.     #[ORM\Column(type'float'nullabletrue)]
  91.     private $tauxRaccordement;
  92.         
  93.     public function getGraphData(): ?array {
  94.                      
  95.                              return json_decode($this->graphData,true);
  96.                          }
  97.     public function setGraphData(?array $graphData): self {
  98.                              $this->graphData json_encode($graphData);
  99.                              return $this;
  100.                          }
  101.     #[ORM\Column(type'boolean'nullabletrue)]
  102.     private $certivea;
  103.     #[ORM\Column(length255nullabletrue)]
  104.     private ?string $anneesCalculees null;
  105.     #[ORM\Column(length255nullabletrue)]
  106.     private ?string $stationAPI null;
  107.     public function getCertivea(): ?bool
  108.     {
  109.         return $this->certivea;
  110.     }
  111.     public function setCertivea(?bool $certivea): self
  112.     {
  113.         $this->certivea $certivea;
  114.         return $this;
  115.     }
  116.     
  117.     public function getNomSurface(): ?string
  118.     {
  119.         return $this->nomSurface;
  120.     }
  121.     public function getNomSurface2(): ?string
  122.     {
  123.         return $this->nomSurface2;
  124.     }
  125.     public function getNomSurface3(): ?string 
  126.     {
  127.         return $this->nomSurface3;
  128.     }
  129.     public function setNomSurface(?string $nomSurface): self {
  130.         $this->nomSurface $nomSurface;
  131.         return $this;
  132.     }
  133.     public function setNomSurface2(?string $nomSurface2): self {
  134.         $this->nomSurface2 $nomSurface2;
  135.         return $this;
  136.     }
  137.     public function setNomSurface3(?string $nomSurface3): self {
  138.         $this->nomSurface3 $nomSurface3;
  139.         return $this;
  140.     }
  141.         public function getId(): ?int
  142.     {
  143.         return $this->id;
  144.     }
  145.     public function getBesoinEau(): ?string
  146.     {
  147.         return $this->besoinEau;
  148.     }
  149.     public function setBesoinEau(?string $besoinEau): self
  150.     {
  151.         $this->besoinEau $besoinEau;
  152.         return $this;
  153.     }
  154.     public function getSurfaceRecuperee(): ?float
  155.     {
  156.         return $this->surfaceRecuperee;
  157.     }
  158.     public function setSurfaceRecuperee(?float $surfaceRecuperee): self
  159.     {
  160.         $this->surfaceRecuperee $surfaceRecuperee;
  161.         return $this;
  162.     }
  163.     public function getRendementToiture(): ?float
  164.     {
  165.         return $this->rendementToiture;
  166.     }
  167.     public function setRendementToiture(?float $rendementToiture): self
  168.     {
  169.         $this->rendementToiture $rendementToiture;
  170.         return $this;
  171.     }
  172.     public function getSurfaceRecuperee2(): ?float
  173.     {
  174.         return $this->surfaceRecuperee2;
  175.     }
  176.     public function setSurfaceRecuperee2(?float $surfaceRecuperee2): self
  177.     {
  178.         $this->surfaceRecuperee2 $surfaceRecuperee2;
  179.         return $this;
  180.     }
  181.     public function getRendementToiture2(): ?float
  182.     {
  183.         return $this->rendementToiture2;
  184.     }
  185.     public function setRendementToiture2(?float $rendementToiture2): self
  186.     {
  187.         $this->rendementToiture2 $rendementToiture2;
  188.         return $this;
  189.     }
  190.     
  191.         public function getSurfaceRecuperee3(): ?float
  192.     {
  193.         return $this->surfaceRecuperee3;
  194.     }
  195.     public function setSurfaceRecuperee3(?float $surfaceRecuperee3): self
  196.     {
  197.         $this->surfaceRecuperee3 $surfaceRecuperee3;
  198.         return $this;
  199.     }
  200.     public function getRendementToiture3(): ?float
  201.     {
  202.         return $this->rendementToiture3;
  203.     }
  204.     public function setRendementToiture3(?float $rendementToiture3): self
  205.     {
  206.         $this->rendementToiture3 $rendementToiture3;
  207.         return $this;
  208.     }
  209.     
  210.     public function getClimat(): ?string
  211.     {
  212.         return $this->climat;
  213.     }
  214.     public function setClimat(?string $climat): self
  215.     {
  216.         $this->climat $climat;
  217.         return $this;
  218.     }
  219.     
  220.     public function getStationMeteo(): ?float
  221.     {
  222.         return $this->stationMeteo;
  223.     }
  224.     public function setStationMeteo(?float $stationMeteo): self
  225.     {
  226.         $this->stationMeteo $stationMeteo;
  227.         return $this;
  228.     }
  229.     public function getNbreUtilisateur(): ?float
  230.     {
  231.         return $this->nbreUtilisateur;
  232.     }
  233.     public function setNbreUtilisateur(?float $nbreUtilisateur): self
  234.     {
  235.         $this->nbreUtilisateur $nbreUtilisateur;
  236.         return $this;
  237.     }
  238.     public function getVolumeUtilisateur(): ?float
  239.     {
  240.         return $this->volumeUtilisateur;
  241.     }
  242.     public function setVolumeUtilisateur(?float $volumeUtilisateur): self
  243.     {
  244.         $this->volumeUtilisateur $volumeUtilisateur;
  245.         return $this;
  246.     }
  247.     public function getVolumeParUtilisation(): ?float
  248.     {
  249.         return $this->volumeParUtilisation;
  250.     }
  251.     public function setVolumeParUtilisation(?float $volumeParUtilisation): self
  252.     {
  253.         $this->volumeParUtilisation $volumeParUtilisation;
  254.         return $this;
  255.     }
  256.     public function getScenarioUtilisation(): ?float
  257.     {
  258.         return $this->scenarioUtilisation;
  259.     }
  260.     public function setScenarioUtilisation(?float $scenarioUtilisation): self
  261.     {
  262.         $this->scenarioUtilisation $scenarioUtilisation;
  263.         return $this;
  264.     }
  265.     public function getRu(): ?float
  266.     {
  267.         return $this->ru;
  268.     }
  269.     public function setRu(?float $ru): self
  270.     {
  271.         $this->ru $ru;
  272.         return $this;
  273.     }
  274.     public function getTypePlante(): ?string
  275.     {
  276.         return $this->typePlante;
  277.     }
  278.     public function setTypePlante(?string $typePlante): self
  279.     {
  280.         $this->typePlante $typePlante;
  281.         return $this;
  282.     }
  283.     public function getProfondeurTerre(): ?float
  284.     {
  285.         return $this->profondeurTerre;
  286.     }
  287.     public function setProfondeurTerre(?float $profondeurTerre): self
  288.     {
  289.         $this->profondeurTerre $profondeurTerre;
  290.         return $this;
  291.     }
  292.     public function getArrosage(): ?float
  293.     {
  294.         return $this->arrosage;
  295.     }
  296.     public function setArrosage(?float $arrosage): self
  297.     {
  298.         $this->arrosage $arrosage;
  299.         return $this;
  300.     }
  301.     public function getVolumeCuve(): ?float
  302.     {
  303.         return $this->volumeCuve;
  304.     }
  305.     public function setVolumeCuve(?float $volumeCuve): self
  306.     {
  307.         $this->volumeCuve $volumeCuve;
  308.         return $this;
  309.     }
  310.     public function getTauxObjectif(): ?float
  311.     {
  312.         return $this->tauxObjectif;
  313.     }
  314.     public function setTauxObjectif(?float $tauxObjectif): self
  315.     {
  316.         $this->tauxObjectif $tauxObjectif;
  317.         return $this;
  318.     }
  319.     public function getCoutEau(): ?float
  320.     {
  321.         return $this->coutEau;
  322.     }
  323.     public function setCoutEau(?float $coutEau): self
  324.     {
  325.         $this->coutEau $coutEau;
  326.         return $this;
  327.     }
  328.     public function getCoutPompe(): ?float
  329.     {
  330.         return $this->coutPompe;
  331.     }
  332.     public function setCoutPompe(?float $coutPompe): self
  333.     {
  334.         $this->coutPompe $coutPompe;
  335.         return $this;
  336.     }
  337.     public function getCoutVolume(): ?float
  338.     {
  339.         return $this->coutVolume;
  340.     }
  341.     public function setCoutVolume(?float $coutVolume): self
  342.     {
  343.         $this->coutVolume $coutVolume;
  344.         return $this;
  345.     }
  346.     public function getChoixVolume(): ?float
  347.     {
  348.         return $this->choixVolume;
  349.     }
  350.     public function setChoixVolume(?float $choixVolume): self
  351.     {
  352.         $this->choixVolume $choixVolume;
  353.         return $this;
  354.     }
  355.     public function getCoutVolume2(): ?float
  356.     {
  357.         return $this->coutVolume2;
  358.     }
  359.     public function setCoutVolume2(?float $coutVolume2): self
  360.     {
  361.         $this->coutVolume2 $coutVolume2;
  362.         return $this;
  363.     }
  364.     public function getChoixVolume2(): ?float
  365.     {
  366.         return $this->choixVolume2;
  367.     }
  368.     public function setChoixVolume2(?float $choixVolume2): self
  369.     {
  370.         $this->choixVolume2 $choixVolume2;
  371.         return $this;
  372.     }
  373.     public function getNomDuProjet(): ?string
  374.     {
  375.         return $this->nomDuProjet;
  376.     }
  377.     public function setNomDuProjet(?string $nomDuProjet): self
  378.     {
  379.         $this->nomDuProjet $nomDuProjet;
  380.         return $this;
  381.     }
  382.     public function getSArrosage(): ?float
  383.     {
  384.         return $this->sArrosage;
  385.     }
  386.     public function setSArrosage(?float $sArrosage): self
  387.     {
  388.         $this->sArrosage $sArrosage;
  389.         return $this;
  390.     }
  391.     public function getTheUser(): ?User
  392.     {
  393.         return $this->theUser;
  394.     }
  395.     public function setTheUser(?User $theUser): self
  396.     {
  397.         $this->theUser $theUser;
  398.         return $this;
  399.     }
  400.     public function getTime(): ?string
  401.     {
  402.         return $this->time;
  403.     }
  404.     public function setTime(?string $time): self
  405.     {
  406.         $this->time $time;
  407.         return $this;
  408.     }
  409.     
  410.     
  411.     public function getTauxRaccordement(): ?float
  412.     {
  413.         return $this->tauxRaccordement;
  414.     }
  415.     public function setTauxRaccordement(?float $tauxRaccordement): self
  416.     {
  417.         $this->tauxRaccordement $tauxRaccordement;
  418.         return $this;
  419.     }
  420.     public function getAnneesCalculees(): ?string
  421.     {
  422.         return $this->anneesCalculees;
  423.     }
  424.     public function setAnneesCalculees(?string $anneesCalculees): static
  425.     {
  426.         $this->anneesCalculees $anneesCalculees;
  427.         return $this;
  428.     }
  429.     public function getStationAPI(): ?string
  430.     {
  431.         return $this->stationAPI;
  432.     }
  433.     public function setStationAPI(?string $stationAPI): static
  434.     {
  435.         $this->stationAPI $stationAPI;
  436.         return $this;
  437.     }
  438. }