<?php
namespace App\Entity;
use App\Repository\ContactRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: ContactRepository::class)]
class Contact
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'string', length: 255)]
private $name;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $email;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $phone;
#[ORM\Column(type: 'text', nullable: true)]
private $message;
#[ORM\Column(type: 'boolean', nullable: true)]
private $rgpd;
#[ORM\Column(type: 'datetime', nullable: true)]
private $dateadd;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $page;
#[ORM\Column(type: 'boolean', nullable: true, options: ['default' => 0])]
private $isadmin=false;
#[ORM\Column(type: 'float', nullable: true)]
private $proposalAmount;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $subject;
#[ORM\ManyToOne(targetEntity: ContactSubjectType::class)]
private $subjectType;
#[ORM\ManyToOne(targetEntity: ContactPipelineStep::class)]
private ?ContactPipelineStep $currentStep = null;
#[ORM\ManyToOne(targetEntity: AccountingFirm::class, inversedBy: 'contacts')]
private $accountingFirm;
#[ORM\Column(type: 'datetime_immutable', nullable: true)]
private ?\DateTimeImmutable $updatedAt = null;
public function getId(): ?int
{
return $this->id;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(string $name): self
{
$this->name = $name;
return $this;
}
public function getEmail(): ?string
{
return $this->email;
}
public function setEmail(?string $email): self
{
$this->email = $email;
return $this;
}
public function getPhone(): ?string
{
return $this->phone;
}
public function setPhone(?string $phone): self
{
$this->phone = $phone;
return $this;
}
public function getMessage(): ?string
{
return $this->message;
}
public function setMessage(?string $message): self
{
$this->message = $message;
return $this;
}
public function getRgpd(): ?bool
{
return $this->rgpd;
}
public function setRgpd(?bool $rgpd): self
{
$this->rgpd = $rgpd;
return $this;
}
public function getDateadd(): ?\DateTimeInterface
{
return $this->dateadd;
}
public function setDateadd(?\DateTimeInterface $dateadd): self
{
$this->dateadd = $dateadd;
return $this;
}
public function getPage(): ?string
{
return $this->page;
}
public function setPage(?string $page): self
{
$this->page = $page;
return $this;
}
public function getIsadmin(): ?bool
{
return $this->isadmin;
}
public function setIsadmin(?bool $isadmin): self
{
$this->isadmin = $isadmin;
return $this;
}
public function getProposalAmount(): ?string
{
return $this->proposalAmount;
}
public function setProposalAmount(?string $proposalAmount): self
{
$this->proposalAmount = $proposalAmount;
return $this;
}
public function getsubject(): ?string
{
return $this->subject;
}
public function setsubject(?string $subject): self
{
$this->subject = $subject;
return $this;
}
public function getSubjectType(): ?ContactSubjectType
{
return $this->subjectType;
}
public function setSubjectType(?ContactSubjectType $subjectType): self
{
$this->subjectType = $subjectType;
return $this;
}
public function getCurrentStep(): ?ContactPipelineStep
{
return $this->currentStep;
}
public function setCurrentStep(?ContactPipelineStep $currentStep): self
{
$this->currentStep = $currentStep;
return $this;
}
public function getAccountingFirm(): ?AccountingFirm
{
return $this->accountingFirm;
}
public function setAccountingFirm(?AccountingFirm $accountingFirm): self
{
$this->accountingFirm = $accountingFirm;
return $this;
}
public function getUpdatedAt(): ?\DateTimeImmutable
{
return $this->updatedAt;
}
public function setUpdatedAt(?\DateTimeImmutable $updatedAt): self
{
$this->updatedAt = $updatedAt;
return $this;
}
}