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.     public function getCertivea(): ?bool
  104.     {
  105.         return $this->certivea;
  106.     }
  107.     public function setCertivea(?bool $certivea): self
  108.     {
  109.         $this->certivea $certivea;
  110.         return $this;
  111.     }
  112.     
  113.     public function getNomSurface(): ?string
  114.     {
  115.         return $this->nomSurface;
  116.     }
  117.     public function getNomSurface2(): ?string
  118.     {
  119.         return $this->nomSurface2;
  120.     }
  121.     public function getNomSurface3(): ?string 
  122.     {
  123.         return $this->nomSurface3;
  124.     }
  125.     public function setNomSurface(?string $nomSurface): self {
  126.         $this->nomSurface $nomSurface;
  127.         return $this;
  128.     }
  129.     public function setNomSurface2(?string $nomSurface2): self {
  130.         $this->nomSurface2 $nomSurface2;
  131.         return $this;
  132.     }
  133.     public function setNomSurface3(?string $nomSurface3): self {
  134.         $this->nomSurface3 $nomSurface3;
  135.         return $this;
  136.     }
  137.         public function getId(): ?int
  138.     {
  139.         return $this->id;
  140.     }
  141.     public function getBesoinEau(): ?string
  142.     {
  143.         return $this->besoinEau;
  144.     }
  145.     public function setBesoinEau(?string $besoinEau): self
  146.     {
  147.         $this->besoinEau $besoinEau;
  148.         return $this;
  149.     }
  150.     public function getSurfaceRecuperee(): ?float
  151.     {
  152.         return $this->surfaceRecuperee;
  153.     }
  154.     public function setSurfaceRecuperee(?float $surfaceRecuperee): self
  155.     {
  156.         $this->surfaceRecuperee $surfaceRecuperee;
  157.         return $this;
  158.     }
  159.     public function getRendementToiture(): ?float
  160.     {
  161.         return $this->rendementToiture;
  162.     }
  163.     public function setRendementToiture(?float $rendementToiture): self
  164.     {
  165.         $this->rendementToiture $rendementToiture;
  166.         return $this;
  167.     }
  168.     public function getSurfaceRecuperee2(): ?float
  169.     {
  170.         return $this->surfaceRecuperee2;
  171.     }
  172.     public function setSurfaceRecuperee2(?float $surfaceRecuperee2): self
  173.     {
  174.         $this->surfaceRecuperee2 $surfaceRecuperee2;
  175.         return $this;
  176.     }
  177.     public function getRendementToiture2(): ?float
  178.     {
  179.         return $this->rendementToiture2;
  180.     }
  181.     public function setRendementToiture2(?float $rendementToiture2): self
  182.     {
  183.         $this->rendementToiture2 $rendementToiture2;
  184.         return $this;
  185.     }
  186.     
  187.         public function getSurfaceRecuperee3(): ?float
  188.     {
  189.         return $this->surfaceRecuperee3;
  190.     }
  191.     public function setSurfaceRecuperee3(?float $surfaceRecuperee3): self
  192.     {
  193.         $this->surfaceRecuperee3 $surfaceRecuperee3;
  194.         return $this;
  195.     }
  196.     public function getRendementToiture3(): ?float
  197.     {
  198.         return $this->rendementToiture3;
  199.     }
  200.     public function setRendementToiture3(?float $rendementToiture3): self
  201.     {
  202.         $this->rendementToiture3 $rendementToiture3;
  203.         return $this;
  204.     }
  205.     
  206.     public function getClimat(): ?string
  207.     {
  208.         return $this->climat;
  209.     }
  210.     public function setClimat(?string $climat): self
  211.     {
  212.         $this->climat $climat;
  213.         return $this;
  214.     }
  215.     
  216.     public function getStationMeteo(): ?float
  217.     {
  218.         return $this->stationMeteo;
  219.     }
  220.     public function setStationMeteo(?float $stationMeteo): self
  221.     {
  222.         $this->stationMeteo $stationMeteo;
  223.         return $this;
  224.     }
  225.     public function getNbreUtilisateur(): ?float
  226.     {
  227.         return $this->nbreUtilisateur;
  228.     }
  229.     public function setNbreUtilisateur(?float $nbreUtilisateur): self
  230.     {
  231.         $this->nbreUtilisateur $nbreUtilisateur;
  232.         return $this;
  233.     }
  234.     public function getVolumeUtilisateur(): ?float
  235.     {
  236.         return $this->volumeUtilisateur;
  237.     }
  238.     public function setVolumeUtilisateur(?float $volumeUtilisateur): self
  239.     {
  240.         $this->volumeUtilisateur $volumeUtilisateur;
  241.         return $this;
  242.     }
  243.     public function getVolumeParUtilisation(): ?float
  244.     {
  245.         return $this->volumeParUtilisation;
  246.     }
  247.     public function setVolumeParUtilisation(?float $volumeParUtilisation): self
  248.     {
  249.         $this->volumeParUtilisation $volumeParUtilisation;
  250.         return $this;
  251.     }
  252.     public function getScenarioUtilisation(): ?float
  253.     {
  254.         return $this->scenarioUtilisation;
  255.     }
  256.     public function setScenarioUtilisation(?float $scenarioUtilisation): self
  257.     {
  258.         $this->scenarioUtilisation $scenarioUtilisation;
  259.         return $this;
  260.     }
  261.     public function getRu(): ?float
  262.     {
  263.         return $this->ru;
  264.     }
  265.     public function setRu(?float $ru): self
  266.     {
  267.         $this->ru $ru;
  268.         return $this;
  269.     }
  270.     public function getTypePlante(): ?string
  271.     {
  272.         return $this->typePlante;
  273.     }
  274.     public function setTypePlante(?string $typePlante): self
  275.     {
  276.         $this->typePlante $typePlante;
  277.         return $this;
  278.     }
  279.     public function getProfondeurTerre(): ?float
  280.     {
  281.         return $this->profondeurTerre;
  282.     }
  283.     public function setProfondeurTerre(?float $profondeurTerre): self
  284.     {
  285.         $this->profondeurTerre $profondeurTerre;
  286.         return $this;
  287.     }
  288.     public function getArrosage(): ?float
  289.     {
  290.         return $this->arrosage;
  291.     }
  292.     public function setArrosage(?float $arrosage): self
  293.     {
  294.         $this->arrosage $arrosage;
  295.         return $this;
  296.     }
  297.     public function getVolumeCuve(): ?float
  298.     {
  299.         return $this->volumeCuve;
  300.     }
  301.     public function setVolumeCuve(?float $volumeCuve): self
  302.     {
  303.         $this->volumeCuve $volumeCuve;
  304.         return $this;
  305.     }
  306.     public function getTauxObjectif(): ?float
  307.     {
  308.         return $this->tauxObjectif;
  309.     }
  310.     public function setTauxObjectif(?float $tauxObjectif): self
  311.     {
  312.         $this->tauxObjectif $tauxObjectif;
  313.         return $this;
  314.     }
  315.     public function getCoutEau(): ?float
  316.     {
  317.         return $this->coutEau;
  318.     }
  319.     public function setCoutEau(?float $coutEau): self
  320.     {
  321.         $this->coutEau $coutEau;
  322.         return $this;
  323.     }
  324.     public function getCoutPompe(): ?float
  325.     {
  326.         return $this->coutPompe;
  327.     }
  328.     public function setCoutPompe(?float $coutPompe): self
  329.     {
  330.         $this->coutPompe $coutPompe;
  331.         return $this;
  332.     }
  333.     public function getCoutVolume(): ?float
  334.     {
  335.         return $this->coutVolume;
  336.     }
  337.     public function setCoutVolume(?float $coutVolume): self
  338.     {
  339.         $this->coutVolume $coutVolume;
  340.         return $this;
  341.     }
  342.     public function getChoixVolume(): ?float
  343.     {
  344.         return $this->choixVolume;
  345.     }
  346.     public function setChoixVolume(?float $choixVolume): self
  347.     {
  348.         $this->choixVolume $choixVolume;
  349.         return $this;
  350.     }
  351.     public function getCoutVolume2(): ?float
  352.     {
  353.         return $this->coutVolume2;
  354.     }
  355.     public function setCoutVolume2(?float $coutVolume2): self
  356.     {
  357.         $this->coutVolume2 $coutVolume2;
  358.         return $this;
  359.     }
  360.     public function getChoixVolume2(): ?float
  361.     {
  362.         return $this->choixVolume2;
  363.     }
  364.     public function setChoixVolume2(?float $choixVolume2): self
  365.     {
  366.         $this->choixVolume2 $choixVolume2;
  367.         return $this;
  368.     }
  369.     public function getNomDuProjet(): ?string
  370.     {
  371.         return $this->nomDuProjet;
  372.     }
  373.     public function setNomDuProjet(?string $nomDuProjet): self
  374.     {
  375.         $this->nomDuProjet $nomDuProjet;
  376.         return $this;
  377.     }
  378.     public function getSArrosage(): ?float
  379.     {
  380.         return $this->sArrosage;
  381.     }
  382.     public function setSArrosage(?float $sArrosage): self
  383.     {
  384.         $this->sArrosage $sArrosage;
  385.         return $this;
  386.     }
  387.     public function getTheUser(): ?User
  388.     {
  389.         return $this->theUser;
  390.     }
  391.     public function setTheUser(?User $theUser): self
  392.     {
  393.         $this->theUser $theUser;
  394.         return $this;
  395.     }
  396.     public function getTime(): ?string
  397.     {
  398.         return $this->time;
  399.     }
  400.     public function setTime(?string $time): self
  401.     {
  402.         $this->time $time;
  403.         return $this;
  404.     }
  405.     
  406.     
  407.     public function getTauxRaccordement(): ?float
  408.     {
  409.         return $this->tauxRaccordement;
  410.     }
  411.     public function setTauxRaccordement(?float $tauxRaccordement): self
  412.     {
  413.         $this->tauxRaccordement $tauxRaccordement;
  414.         return $this;
  415.     }
  416. }