src/Entity/DataUplinks.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\DataUplinksRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass=DataUplinksRepository::class)
  8.  */
  9. class DataUplinks
  10. {
  11.     /**
  12.      * @ORM\Id()
  13.      * @ORM\GeneratedValue()
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="float", nullable=true)
  19.      */
  20.     private $temperature;
  21.     /**
  22.      * @ORM\Column(type="float", nullable=true)
  23.      */
  24.     private $humidity;
  25.     /**
  26.      * @ORM\Column(type="integer", nullable=true)
  27.      */
  28.     private $sourceButton;
  29.     /**
  30.      * @ORM\Column(type="integer", nullable=true)
  31.      */
  32.     private $typeTrigger;
  33.     /**
  34.      * @ORM\Column(type="datetime")
  35.      */
  36.     private $horodating;
  37.     /**
  38.      * @ORM\Column(type="string", length=255, nullable=true)
  39.      */
  40.     private $mode;
  41.     /**
  42.      * @ORM\Column(type="string", length=255, nullable=true)
  43.      */
  44.     private $codeAlerte;
  45.     /**
  46.      * @ORM\Column(type="string", length=255, nullable=true)
  47.      */
  48.     private $messageAlerte;
  49.     /**
  50.      * @ORM\ManyToOne(targetEntity=Device::class, inversedBy="messagesUplinks")
  51.      * @ORM\JoinColumn(nullable=false)
  52.      */
  53.     private $device;
  54.     /**
  55.      * @ORM\Column(type="string", length=255, nullable=true)
  56.      */
  57.     private $severity;
  58.     /**
  59.      * @ORM\Column(type="string", length=255, nullable=true)
  60.      */
  61.     private $errorMessage;
  62.     /**
  63.      * @ORM\Column(type="integer", nullable=true)
  64.      */
  65.     private $activityLevel;
  66.     /**
  67.      * @ORM\Column(type="integer", nullable=true)
  68.      */
  69.     private $co2ppm;
  70.     /**
  71.      * @ORM\Column(type="string", length=255, nullable=true)
  72.      */
  73.     private $devEUI;
  74.     /**
  75.      * @ORM\Column(type="integer", nullable=true)
  76.      */
  77.     private $illumination;
  78.     /**
  79.      * @ORM\Column(type="integer", nullable=true)
  80.      */
  81.     private $infrared;
  82.     /**
  83.      * @ORM\Column(type="integer", nullable=true)
  84.      */
  85.     private $infraredAndVisible;
  86.     /**
  87.      * @ORM\Column(type="float", nullable=true)
  88.      */
  89.     private $pressure;
  90.     /**
  91.      * @ORM\Column(type="integer", nullable=true)
  92.      */
  93.     private $tvoc;
  94.     /**
  95.      * @ORM\Column(type="float", nullable=true)
  96.      */
  97.     private $dba;
  98.     /**
  99.      * @ORM\Column(type="float", nullable=true)
  100.      */
  101.     private $dbaeq;
  102.     /**
  103.      * @ORM\Column(type="float", nullable=true)
  104.      */
  105.     private $dbamax;
  106.     public function getId(): ?int
  107.     {
  108.         return $this->id;
  109.     }
  110.     public function getTemperature(): ?float
  111.     {
  112.         return $this->temperature;
  113.     }
  114.     public function setTemperature(?float $temperature): self
  115.     {
  116.         $this->temperature $temperature;
  117.         return $this;
  118.     }
  119.     public function getHumidity(): ?float
  120.     {
  121.         return $this->humidity;
  122.     }
  123.     public function setHumidity(?float $humidity): self
  124.     {
  125.         $this->humidity $humidity;
  126.         return $this;
  127.     }
  128.     public function getSourceButton(): ?int
  129.     {
  130.         return $this->sourceButton;
  131.     }
  132.     public function setSourceButton(?int $sourceButton): self
  133.     {
  134.         $this->sourceButton $sourceButton;
  135.         return $this;
  136.     }
  137.     public function getTypeTrigger(): ?int
  138.     {
  139.         return $this->typeTrigger;
  140.     }
  141.     public function setTypeTrigger(?int $typeTrigger): self
  142.     {
  143.         $this->typeTrigger $typeTrigger;
  144.         return $this;
  145.     }
  146.     public function getHorodating(): ?\DateTimeInterface
  147.     {
  148.         return $this->horodating;
  149.     }
  150.     public function setHorodating(\DateTimeInterface $horodating): self
  151.     {
  152.         $this->horodating $horodating;
  153.         return $this;
  154.     }
  155.     public function getMode(): ?string
  156.     {
  157.         return $this->mode;
  158.     }
  159.     public function setMode(?string $mode): self
  160.     {
  161.         $this->mode $mode;
  162.         return $this;
  163.     }
  164.     public function getCodeAlerte(): ?string
  165.     {
  166.         return $this->codeAlerte;
  167.     }
  168.     public function setCodeAlerte(?string $codeAlerte): self
  169.     {
  170.         $this->codeAlerte $codeAlerte;
  171.         return $this;
  172.     }
  173.     public function getMessageAlerte(): ?string
  174.     {
  175.         return $this->messageAlerte;
  176.     }
  177.     public function setMessageAlerte(?string $messageAlerte): self
  178.     {
  179.         $this->messageAlerte $messageAlerte;
  180.         return $this;
  181.     }
  182.     public function getDevice(): ?Device
  183.     {
  184.         return $this->device;
  185.     }
  186.     public function setDevice(?Device $device): self
  187.     {
  188.         $this->device $device;
  189.         return $this;
  190.     }
  191.     public function getSeverity(): ?string
  192.     {
  193.         return $this->severity;
  194.     }
  195.     public function setSeverity(?string $severity): self
  196.     {
  197.         $this->severity $severity;
  198.         return $this;
  199.     }
  200.     public function getErrorMessage(): ?string
  201.     {
  202.         return $this->errorMessage;
  203.     }
  204.     public function setErrorMessage(?string $errorMessage): self
  205.     {
  206.         $this->errorMessage $errorMessage;
  207.         return $this;
  208.     }
  209.     public function getActivityLevel(): ?int
  210.     {
  211.         return $this->activityLevel;
  212.     }
  213.     public function setActivityLevel(?int $activityLevel): self
  214.     {
  215.         $this->activityLevel $activityLevel;
  216.         return $this;
  217.     }
  218.     public function getCo2ppm(): ?int
  219.     {
  220.         return $this->co2ppm;
  221.     }
  222.     public function setCo2ppm(?int $co2ppm): self
  223.     {
  224.         $this->co2ppm $co2ppm;
  225.         return $this;
  226.     }
  227.     public function getDevEUI(): ?string
  228.     {
  229.         return $this->devEUI;
  230.     }
  231.     public function setDevEUI(?string $devEUI): self
  232.     {
  233.         $this->devEUI $devEUI;
  234.         return $this;
  235.     }
  236.     public function getIllumination(): ?int
  237.     {
  238.         return $this->illumination;
  239.     }
  240.     public function setIllumination(?int $illumination): self
  241.     {
  242.         $this->illumination $illumination;
  243.         return $this;
  244.     }
  245.     public function getInfrared(): ?int
  246.     {
  247.         return $this->infrared;
  248.     }
  249.     public function setInfrared(?int $infrared): self
  250.     {
  251.         $this->infrared $infrared;
  252.         return $this;
  253.     }
  254.     public function getInfraredAndVisible(): ?int
  255.     {
  256.         return $this->infraredAndVisible;
  257.     }
  258.     public function setInfraredAndVisible(?int $infraredAndVisible): self
  259.     {
  260.         $this->infraredAndVisible $infraredAndVisible;
  261.         return $this;
  262.     }
  263.     public function getPressure(): ?float
  264.     {
  265.         return $this->pressure;
  266.     }
  267.     public function setPressure(?float $pressure): self
  268.     {
  269.         $this->pressure $pressure;
  270.         return $this;
  271.     }
  272.     public function getTvoc(): ?int
  273.     {
  274.         return $this->tvoc;
  275.     }
  276.     public function setTvoc(?int $tvoc): self
  277.     {
  278.         $this->tvoc $tvoc;
  279.         return $this;
  280.     }
  281.     public function getDba(): ?float
  282.     {
  283.         return $this->dba;
  284.     }
  285.     public function setDba(?float $dba): self
  286.     {
  287.         $this->dba $dba;
  288.         return $this;
  289.     }
  290.     public function getDbaeq(): ?float
  291.     {
  292.         return $this->dbaeq;
  293.     }
  294.     public function setDbaeq(?float $dbaeq): self
  295.     {
  296.         $this->dbaeq $dbaeq;
  297.         return $this;
  298.     }
  299.     public function getDbamax(): ?float
  300.     {
  301.         return $this->dbamax;
  302.     }
  303.     public function setDbamax(?float $dbamax): self
  304.     {
  305.         $this->dbamax $dbamax;
  306.         return $this;
  307.     }
  308. }