<?php
namespace App\Entity\App;
use App\Repository\App\ContactRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: ContactRepository::class)]
class Contact
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 100)]
private ?string $name = null;
#[ORM\Column(length: 255)]
private ?string $email = null;
#[ORM\Column(length: 255)]
private ?string $object = null;
#[ORM\Column(length: 500)]
private ?string $message = null;
#[ORM\Column]
private int $category;
#[ORM\Column]
private ?\DateTimeImmutable $sendAt = null;
#[ORM\Column]
private ?bool $isSeen = null;
#[ORM\Column]
private ?bool $isActive = null;
public function getId(): ?int
{
return $this->id;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(string $name): static
{
$this->name = $name;
return $this;
}
public function getEmail(): ?string
{
return $this->email;
}
public function setEmail(string $email): static
{
$this->email = $email;
return $this;
}
public function getObject(): ?string
{
return $this->object;
}
public function setObject(string $object): static
{
$this->object = $object;
return $this;
}
public function getMessage(): ?string
{
return $this->message;
}
public function setMessage(string $message): static
{
$this->message = $message;
return $this;
}
public function getSendAt(): ?\DateTimeImmutable
{
return $this->sendAt;
}
public function setSendAt(?\DateTimeImmutable $sendAt): static
{
$this->sendAt = $sendAt;
return $this;
}
public function isSeen(): ?bool
{
return $this->isSeen;
}
public function setSeen(bool $isSeen): static
{
$this->isSeen = $isSeen;
return $this;
}
public function isActive(): ?bool
{
return $this->isActive;
}
public function setActive(bool $isActive): static
{
$this->isActive = $isActive;
return $this;
}
public function getCategory(): int
{
return $this->category;
}
public function setCategory(int $category): static
{
$this->category = $category;
return $this;
}
}