src/Entity/LeakAlertHistory.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\App\LeakAlertHistoryRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=LeakAlertHistoryRepository::class)
  7.  */
  8. class LeakAlertHistory
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\ManyToOne(targetEntity=User::class)
  18.      * @ORM\JoinColumn(nullable=false, onDelete="CASCADE")
  19.      */
  20.     private $customer;
  21.     /**
  22.      * @ORM\Column(type="string", length=50, nullable=true)
  23.      */
  24.     private $contractNumber;
  25.     /**
  26.      * @ORM\Column(type="string", length=50, nullable=true)
  27.      */
  28.     private $postNumber;
  29.     /**
  30.      * @ORM\Column(type="datetime_immutable")
  31.      */
  32.     private $concernedPeriod;
  33.     /**
  34.      * @ORM\Column(type="datetime_immutable", nullable=true)
  35.      */
  36.     private $sentAt;
  37.     public function getId(): ?int
  38.     {
  39.         return $this->id;
  40.     }
  41.     public function getCustomer(): ?User
  42.     {
  43.         return $this->customer;
  44.     }
  45.     public function setCustomer(?User $customer): self
  46.     {
  47.         $this->customer $customer;
  48.         return $this;
  49.     }
  50.     public function getContractNumber(): ?string
  51.     {
  52.         return $this->contractNumber;
  53.     }
  54.     public function setContractNumber(?string $contractNumber): self
  55.     {
  56.         $this->contractNumber $contractNumber;
  57.         return $this;
  58.     }
  59.     public function getPostNumber(): ?string
  60.     {
  61.         return $this->postNumber;
  62.     }
  63.     public function setPostNumber(?string $postNumber): self
  64.     {
  65.         $this->postNumber $postNumber;
  66.         return $this;
  67.     }
  68.     public function getConcernedPeriod(): ?\DateTimeImmutable
  69.     {
  70.         return $this->concernedPeriod;
  71.     }
  72.     public function setConcernedPeriod(\DateTimeImmutable $concernedPeriod): self
  73.     {
  74.         $this->concernedPeriod $concernedPeriod;
  75.         return $this;
  76.     }
  77.     public function getSentAt(): ?\DateTimeImmutable
  78.     {
  79.         return $this->sentAt;
  80.     }
  81.     public function setSentAt(?\DateTimeImmutable $sentAt): self
  82.     {
  83.         $this->sentAt $sentAt;
  84.         return $this;
  85.     }
  86. }