<?phpnamespace App\Entity;use Doctrine\ORM\Mapping as ORM;use Symfony\Component\Validator\Constraints as Assert;/** * @ORM\Entity(repositoryClass="App\Repository\App\ConsumptionAlertRepository") * @Assert\Callback({"App\Validator\ValidConsumptionAlertValidator", "validate"}) */class ConsumptionAlert{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ protected $id; /** * @ORM\Column(type="integer") */ protected $customerNumber; /** * @ORM\Column(type="string", length=50) */ protected $postNumber; /** * @ORM\Column(type="integer") */ protected $measureNumber; /** * @ORM\Column(type="float", nullable=true) */ protected $minValue; /** * @ORM\Column(type="float", nullable=true) */ protected $maxValue; public function getId(): ?int { return $this->id; } /** * @return ConsumptionAlert */ public function setId(int $id): self { $this->id = $id; return $this; } public function getCustomerNumber(): ?string { return $this->customerNumber; } /** * @return ConsumptionAlert */ public function setCustomerNumber(string $customerNumber): self { $this->customerNumber = $customerNumber; return $this; } public function getPostNumber(): ?string { return $this->postNumber; } /** * @return ConsumptionAlert */ public function setPostNumber(string $postNumber): self { $this->postNumber = $postNumber; return $this; } public function getMeasureNumber(): ?int { return $this->measureNumber; } /** * @return ConsumptionAlert */ public function setMeasureNumber(int $measureNumber): self { $this->measureNumber = $measureNumber; return $this; } public function getMinValue(): ?float { return $this->minValue; } /** * @param $minValue * * @return ConsumptionAlert */ public function setMinValue($minValue): self { $this->minValue = $minValue; return $this; } public function getMaxValue(): ?float { return $this->maxValue; } /** * @param $maxValue * * @return ConsumptionAlert */ public function setMaxValue($maxValue): self { $this->maxValue = $maxValue; return $this; }}