src/Entity/Monitoring/MonitoringParameterValue.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Monitoring;
  3. use App\Entity\Techcard\Techcard;
  4. use App\Repository\Monitoring\MonitoringParameterValueRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass=MonitoringParameterValueRepository::class)
  8.  */
  9. class MonitoringParameterValue
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="string", length=255, nullable=true)
  19.      */
  20.     private $norm;
  21.     /**
  22.      * @ORM\Column(type="string", length=255, nullable=true)
  23.      */
  24.     private $min;
  25.     /**
  26.      * @ORM\Column(type="string", length=255, nullable=true)
  27.      */
  28.     private $max;
  29.     /**
  30.      * @ORM\Column(type="boolean", nullable=true, options={"default": false})
  31.      */
  32.     private $alert;
  33.     /**
  34.      * @ORM\Column(type="boolean", nullable=true, options={"default": true})
  35.      */
  36.     private $addImage;
  37.     /**
  38.      * @ORM\Column(type="boolean", nullable=true, options={"default": false})
  39.      */
  40.     private $displayNorm;
  41.     /**
  42.      * @ORM\Column(type="boolean", nullable=true, options={"default": false})
  43.      */
  44.     private $comment;
  45.     /**
  46.      * @ORM\Column(type="text", nullable=true)
  47.      */
  48.     private $commentText;
  49.     /**
  50.      * @ORM\Column(type="string", length=255, nullable=true)
  51.      */
  52.     private $image;
  53.     /**
  54.      * @ORM\ManyToOne(targetEntity=Techcard::class, inversedBy="monitoringParameterValues")
  55.      */
  56.     private $techcard;
  57.     /**
  58.      * @ORM\ManyToOne(targetEntity=MonitoringParameter::class, inversedBy="parameterValues")
  59.      */
  60.     private $parameter;
  61.     /**
  62.      * @ORM\ManyToOne(targetEntity=Monitoring::class, inversedBy="monitoringParameterValues")
  63.      */
  64.     private $monitoring;
  65.     public function __construct()
  66.     {
  67.         if(is_null($this->id)){
  68.             $this->addImage true;
  69.         }
  70.     }
  71.     public function getId(): ?int
  72.     {
  73.         return $this->id;
  74.     }
  75.     public function getNorm(): ?string
  76.     {
  77.         return $this->norm;
  78.     }
  79.     public function setNorm(?string $norm): self
  80.     {
  81.         $this->norm $norm;
  82.         return $this;
  83.     }
  84.     public function getMin(): ?string
  85.     {
  86.         return $this->min;
  87.     }
  88.     public function setMin(?string $min): self
  89.     {
  90.         $this->min $min;
  91.         return $this;
  92.     }
  93.     public function getMax(): ?string
  94.     {
  95.         return $this->max;
  96.     }
  97.     public function setMax(?string $max): self
  98.     {
  99.         $this->max $max;
  100.         return $this;
  101.     }
  102.     public function getAlert(): ?bool
  103.     {
  104.         return $this->alert;
  105.     }
  106.     public function setAlert(?bool $alert): self
  107.     {
  108.         $this->alert $alert;
  109.         return $this;
  110.     }
  111.     public function getAddImage(): ?bool
  112.     {
  113.         return $this->addImage;
  114.     }
  115.     public function setAddImage(?bool $addImage): self
  116.     {
  117.         $this->addImage $addImage;
  118.         return $this;
  119.     }
  120.     public function getDisplayNorm(): ?bool
  121.     {
  122.         return $this->displayNorm;
  123.     }
  124.     public function setDisplayNorm(?bool $displayNorm): self
  125.     {
  126.         $this->displayNorm $displayNorm;
  127.         return $this;
  128.     }
  129.     public function getComment(): ?bool
  130.     {
  131.         return $this->comment;
  132.     }
  133.     public function setComment(?bool $comment): self
  134.     {
  135.         $this->comment $comment;
  136.         return $this;
  137.     }
  138.     public function getCommentText(): ?string
  139.     {
  140.         return $this->commentText;
  141.     }
  142.     public function setCommentText(?string $commentText): self
  143.     {
  144.         $this->commentText $commentText;
  145.         return $this;
  146.     }
  147.     public function getImage(): ?string
  148.     {
  149.         return $this->image;
  150.     }
  151.     public function setImage(?string $image): self
  152.     {
  153.         $this->image $image;
  154.         return $this;
  155.     }
  156.     public function getTechcard(): ?Techcard
  157.     {
  158.         return $this->techcard;
  159.     }
  160.     public function setTechcard(?Techcard $techcard): self
  161.     {
  162.         $this->techcard $techcard;
  163.         return $this;
  164.     }
  165.     public function getParameter(): ?MonitoringParameter
  166.     {
  167.         return $this->parameter;
  168.     }
  169.     public function setParameter(?MonitoringParameter $parameter): self
  170.     {
  171.         $this->parameter $parameter;
  172.         return $this;
  173.     }
  174.     public function __toString()
  175.     {
  176.         return (string)$this->id;
  177.     }
  178.     public function getMonitoring(): ?Monitoring
  179.     {
  180.         return $this->monitoring;
  181.     }
  182.     public function setMonitoring(?Monitoring $monitoring): self
  183.     {
  184.         $this->monitoring $monitoring;
  185.         return $this;
  186.     }
  187. }