<?php
namespace App\Entity\Monitoring;
use App\Entity\Techcard\Techcard;
use App\Repository\Monitoring\MonitoringParameterValueRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=MonitoringParameterValueRepository::class)
*/
class MonitoringParameterValue
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $norm;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $min;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $max;
/**
* @ORM\Column(type="boolean", nullable=true, options={"default": false})
*/
private $alert;
/**
* @ORM\Column(type="boolean", nullable=true, options={"default": true})
*/
private $addImage;
/**
* @ORM\Column(type="boolean", nullable=true, options={"default": false})
*/
private $displayNorm;
/**
* @ORM\Column(type="boolean", nullable=true, options={"default": false})
*/
private $comment;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $commentText;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $image;
/**
* @ORM\ManyToOne(targetEntity=Techcard::class, inversedBy="monitoringParameterValues")
*/
private $techcard;
/**
* @ORM\ManyToOne(targetEntity=MonitoringParameter::class, inversedBy="parameterValues")
*/
private $parameter;
/**
* @ORM\ManyToOne(targetEntity=Monitoring::class, inversedBy="monitoringParameterValues")
*/
private $monitoring;
public function __construct()
{
if(is_null($this->id)){
$this->addImage = true;
}
}
public function getId(): ?int
{
return $this->id;
}
public function getNorm(): ?string
{
return $this->norm;
}
public function setNorm(?string $norm): self
{
$this->norm = $norm;
return $this;
}
public function getMin(): ?string
{
return $this->min;
}
public function setMin(?string $min): self
{
$this->min = $min;
return $this;
}
public function getMax(): ?string
{
return $this->max;
}
public function setMax(?string $max): self
{
$this->max = $max;
return $this;
}
public function getAlert(): ?bool
{
return $this->alert;
}
public function setAlert(?bool $alert): self
{
$this->alert = $alert;
return $this;
}
public function getAddImage(): ?bool
{
return $this->addImage;
}
public function setAddImage(?bool $addImage): self
{
$this->addImage = $addImage;
return $this;
}
public function getDisplayNorm(): ?bool
{
return $this->displayNorm;
}
public function setDisplayNorm(?bool $displayNorm): self
{
$this->displayNorm = $displayNorm;
return $this;
}
public function getComment(): ?bool
{
return $this->comment;
}
public function setComment(?bool $comment): self
{
$this->comment = $comment;
return $this;
}
public function getCommentText(): ?string
{
return $this->commentText;
}
public function setCommentText(?string $commentText): self
{
$this->commentText = $commentText;
return $this;
}
public function getImage(): ?string
{
return $this->image;
}
public function setImage(?string $image): self
{
$this->image = $image;
return $this;
}
public function getTechcard(): ?Techcard
{
return $this->techcard;
}
public function setTechcard(?Techcard $techcard): self
{
$this->techcard = $techcard;
return $this;
}
public function getParameter(): ?MonitoringParameter
{
return $this->parameter;
}
public function setParameter(?MonitoringParameter $parameter): self
{
$this->parameter = $parameter;
return $this;
}
public function __toString()
{
return (string)$this->id;
}
public function getMonitoring(): ?Monitoring
{
return $this->monitoring;
}
public function setMonitoring(?Monitoring $monitoring): self
{
$this->monitoring = $monitoring;
return $this;
}
}