src/Entity/ConsumptionAlert.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Symfony\Component\Validator\Constraints as Assert;
  5. /**
  6.  * @ORM\Entity(repositoryClass="App\Repository\App\ConsumptionAlertRepository")
  7.  * @Assert\Callback({"App\Validator\ValidConsumptionAlertValidator", "validate"})
  8.  */
  9. class ConsumptionAlert
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     protected $id;
  17.     /**
  18.      * @ORM\Column(type="integer")
  19.      */
  20.     protected $customerNumber;
  21.     /**
  22.      * @ORM\Column(type="string", length=50)
  23.      */
  24.     protected $postNumber;
  25.     /**
  26.      * @ORM\Column(type="integer")
  27.      */
  28.     protected $measureNumber;
  29.     /**
  30.      * @ORM\Column(type="float", nullable=true)
  31.      */
  32.     protected $minValue;
  33.     /**
  34.      * @ORM\Column(type="float", nullable=true)
  35.      */
  36.     protected $maxValue;
  37.     public function getId(): ?int
  38.     {
  39.         return $this->id;
  40.     }
  41.     /**
  42.      * @return ConsumptionAlert
  43.      */
  44.     public function setId(int $id): self
  45.     {
  46.         $this->id $id;
  47.         return $this;
  48.     }
  49.     public function getCustomerNumber(): ?string
  50.     {
  51.         return $this->customerNumber;
  52.     }
  53.     /**
  54.      * @return ConsumptionAlert
  55.      */
  56.     public function setCustomerNumber(string $customerNumber): self
  57.     {
  58.         $this->customerNumber $customerNumber;
  59.         return $this;
  60.     }
  61.     public function getPostNumber(): ?string
  62.     {
  63.         return $this->postNumber;
  64.     }
  65.     /**
  66.      * @return ConsumptionAlert
  67.      */
  68.     public function setPostNumber(string $postNumber): self
  69.     {
  70.         $this->postNumber $postNumber;
  71.         return $this;
  72.     }
  73.     public function getMeasureNumber(): ?int
  74.     {
  75.         return $this->measureNumber;
  76.     }
  77.     /**
  78.      * @return ConsumptionAlert
  79.      */
  80.     public function setMeasureNumber(int $measureNumber): self
  81.     {
  82.         $this->measureNumber $measureNumber;
  83.         return $this;
  84.     }
  85.     public function getMinValue(): ?float
  86.     {
  87.         return $this->minValue;
  88.     }
  89.     /**
  90.      * @param $minValue
  91.      *
  92.      * @return ConsumptionAlert
  93.      */
  94.     public function setMinValue($minValue): self
  95.     {
  96.         $this->minValue $minValue;
  97.         return $this;
  98.     }
  99.     public function getMaxValue(): ?float
  100.     {
  101.         return $this->maxValue;
  102.     }
  103.     /**
  104.      * @param $maxValue
  105.      *
  106.      * @return ConsumptionAlert
  107.      */
  108.     public function setMaxValue($maxValue): self
  109.     {
  110.         $this->maxValue $maxValue;
  111.         return $this;
  112.     }
  113. }