src/Entity/PluvioDatabase.php line 13

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