<?phpnamespace App\Entity;use App\Repository\App\LeakAlertActivationRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=LeakAlertActivationRepository::class) */class LeakAlertActivation implements PostAwareInterface{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\ManyToOne(targetEntity=User::class) * @ORM\JoinColumn(nullable=false, onDelete="CASCADE") */ private $customer; /** * @ORM\Column(type="string", length=50, nullable=true) */ private $contractNumber; /** * @ORM\Column(type="string", length=50, nullable=true) */ private $postNumber; /** * @ORM\Column(type="boolean") */ private $activated; /** * @ORM\Column(type="datetime_immutable", nullable=true) */ private $activatedAt; /** * @ORM\Column(type="datetime_immutable", nullable=true) */ private $deactivatedAt; public function __construct() { $this->activated = false; } public function getId(): ?int { return $this->id; } public function getCustomer(): ?User { return $this->customer; } public function setCustomer(?User $customer): self { $this->customer = $customer; return $this; } public function getContractNumber(): ?string { return $this->contractNumber; } public function setContractNumber(?string $contractNumber): self { $this->contractNumber = $contractNumber; return $this; } public function getPostNumber(): ?string { return $this->postNumber; } public function setPostNumber(?string $postNumber): self { $this->postNumber = $postNumber; return $this; } public function getActivated(): bool { return $this->activated; } public function setActivated(bool $activated): self { $this->activated = $activated; return $this; } public function getActivatedAt(): ?\DateTimeImmutable { return $this->activatedAt; } public function setActivatedAt(?\DateTimeImmutable $activatedAt): self { $this->activatedAt = $activatedAt; return $this; } public function getDeactivatedAt(): ?\DateTimeImmutable { return $this->deactivatedAt; } public function setDeactivatedAt(?\DateTimeImmutable $deactivatedAt): self { $this->deactivatedAt = $deactivatedAt; return $this; }}