<?php
namespace App\Entity;
use App\Repository\DataUplinksRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=DataUplinksRepository::class)
*/
class DataUplinks
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $temperature;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $humidity;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $sourceButton;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $typeTrigger;
/**
* @ORM\Column(type="datetime")
*/
private $horodating;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $mode;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $codeAlerte;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $messageAlerte;
/**
* @ORM\ManyToOne(targetEntity=Device::class, inversedBy="messagesUplinks")
* @ORM\JoinColumn(nullable=false)
*/
private $device;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $severity;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $errorMessage;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $activityLevel;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $co2ppm;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $devEUI;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $illumination;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $infrared;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $infraredAndVisible;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $pressure;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $tvoc;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $dba;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $dbaeq;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $dbamax;
public function getId(): ?int
{
return $this->id;
}
public function getTemperature(): ?float
{
return $this->temperature;
}
public function setTemperature(?float $temperature): self
{
$this->temperature = $temperature;
return $this;
}
public function getHumidity(): ?float
{
return $this->humidity;
}
public function setHumidity(?float $humidity): self
{
$this->humidity = $humidity;
return $this;
}
public function getSourceButton(): ?int
{
return $this->sourceButton;
}
public function setSourceButton(?int $sourceButton): self
{
$this->sourceButton = $sourceButton;
return $this;
}
public function getTypeTrigger(): ?int
{
return $this->typeTrigger;
}
public function setTypeTrigger(?int $typeTrigger): self
{
$this->typeTrigger = $typeTrigger;
return $this;
}
public function getHorodating(): ?\DateTimeInterface
{
return $this->horodating;
}
public function setHorodating(\DateTimeInterface $horodating): self
{
$this->horodating = $horodating;
return $this;
}
public function getMode(): ?string
{
return $this->mode;
}
public function setMode(?string $mode): self
{
$this->mode = $mode;
return $this;
}
public function getCodeAlerte(): ?string
{
return $this->codeAlerte;
}
public function setCodeAlerte(?string $codeAlerte): self
{
$this->codeAlerte = $codeAlerte;
return $this;
}
public function getMessageAlerte(): ?string
{
return $this->messageAlerte;
}
public function setMessageAlerte(?string $messageAlerte): self
{
$this->messageAlerte = $messageAlerte;
return $this;
}
public function getDevice(): ?Device
{
return $this->device;
}
public function setDevice(?Device $device): self
{
$this->device = $device;
return $this;
}
public function getSeverity(): ?string
{
return $this->severity;
}
public function setSeverity(?string $severity): self
{
$this->severity = $severity;
return $this;
}
public function getErrorMessage(): ?string
{
return $this->errorMessage;
}
public function setErrorMessage(?string $errorMessage): self
{
$this->errorMessage = $errorMessage;
return $this;
}
public function getActivityLevel(): ?int
{
return $this->activityLevel;
}
public function setActivityLevel(?int $activityLevel): self
{
$this->activityLevel = $activityLevel;
return $this;
}
public function getCo2ppm(): ?int
{
return $this->co2ppm;
}
public function setCo2ppm(?int $co2ppm): self
{
$this->co2ppm = $co2ppm;
return $this;
}
public function getDevEUI(): ?string
{
return $this->devEUI;
}
public function setDevEUI(?string $devEUI): self
{
$this->devEUI = $devEUI;
return $this;
}
public function getIllumination(): ?int
{
return $this->illumination;
}
public function setIllumination(?int $illumination): self
{
$this->illumination = $illumination;
return $this;
}
public function getInfrared(): ?int
{
return $this->infrared;
}
public function setInfrared(?int $infrared): self
{
$this->infrared = $infrared;
return $this;
}
public function getInfraredAndVisible(): ?int
{
return $this->infraredAndVisible;
}
public function setInfraredAndVisible(?int $infraredAndVisible): self
{
$this->infraredAndVisible = $infraredAndVisible;
return $this;
}
public function getPressure(): ?float
{
return $this->pressure;
}
public function setPressure(?float $pressure): self
{
$this->pressure = $pressure;
return $this;
}
public function getTvoc(): ?int
{
return $this->tvoc;
}
public function setTvoc(?int $tvoc): self
{
$this->tvoc = $tvoc;
return $this;
}
public function getDba(): ?float
{
return $this->dba;
}
public function setDba(?float $dba): self
{
$this->dba = $dba;
return $this;
}
public function getDbaeq(): ?float
{
return $this->dbaeq;
}
public function setDbaeq(?float $dbaeq): self
{
$this->dbaeq = $dbaeq;
return $this;
}
public function getDbamax(): ?float
{
return $this->dbamax;
}
public function setDbamax(?float $dbamax): self
{
$this->dbamax = $dbamax;
return $this;
}
}