src/Entity/LeakAlertActivation.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\App\LeakAlertActivationRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=LeakAlertActivationRepository::class)
  7.  */
  8. class LeakAlertActivation implements PostAwareInterface
  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="boolean")
  31.      */
  32.     private $activated;
  33.     /**
  34.      * @ORM\Column(type="datetime_immutable", nullable=true)
  35.      */
  36.     private $activatedAt;
  37.     /**
  38.      * @ORM\Column(type="datetime_immutable", nullable=true)
  39.      */
  40.     private $deactivatedAt;
  41.     public function __construct() {
  42.         $this->activated false;
  43.     }
  44.     public function getId(): ?int
  45.     {
  46.         return $this->id;
  47.     }
  48.     public function getCustomer(): ?User
  49.     {
  50.         return $this->customer;
  51.     }
  52.     public function setCustomer(?User $customer): self
  53.     {
  54.         $this->customer $customer;
  55.         return $this;
  56.     }
  57.     public function getContractNumber(): ?string
  58.     {
  59.         return $this->contractNumber;
  60.     }
  61.     public function setContractNumber(?string $contractNumber): self
  62.     {
  63.         $this->contractNumber $contractNumber;
  64.         return $this;
  65.     }
  66.     public function getPostNumber(): ?string
  67.     {
  68.         return $this->postNumber;
  69.     }
  70.     public function setPostNumber(?string $postNumber): self
  71.     {
  72.         $this->postNumber $postNumber;
  73.         return $this;
  74.     }
  75.     public function getActivated(): bool
  76.     {
  77.         return $this->activated;
  78.     }
  79.     public function setActivated(bool $activated): self
  80.     {
  81.         $this->activated $activated;
  82.         return $this;
  83.     }
  84.     public function getActivatedAt(): ?\DateTimeImmutable
  85.     {
  86.         return $this->activatedAt;
  87.     }
  88.     public function setActivatedAt(?\DateTimeImmutable $activatedAt): self
  89.     {
  90.         $this->activatedAt $activatedAt;
  91.         return $this;
  92.     }
  93.     public function getDeactivatedAt(): ?\DateTimeImmutable
  94.     {
  95.         return $this->deactivatedAt;
  96.     }
  97.     public function setDeactivatedAt(?\DateTimeImmutable $deactivatedAt): self
  98.     {
  99.         $this->deactivatedAt $deactivatedAt;
  100.         return $this;
  101.     }
  102. }