src/Entity/Contact.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ContactRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassContactRepository::class)]
  6. class Contact
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private $id;
  12.     #[ORM\Column(type'string'length255)]
  13.     private $name;
  14.     #[ORM\Column(type'string'length255nullabletrue)]
  15.     private $email;
  16.     #[ORM\Column(type'string'length255nullabletrue)]
  17.     private $phone;
  18.     #[ORM\Column(type'text'nullabletrue)]
  19.     private $message;
  20.     #[ORM\Column(type'boolean'nullabletrue)]
  21.     private $rgpd;
  22.     #[ORM\Column(type'datetime'nullabletrue)]
  23.     private $dateadd;
  24.     #[ORM\Column(type'string'length255nullabletrue)]
  25.     private $page;
  26.     #[ORM\Column(type'boolean'nullabletrueoptions: ['default' => 0])]
  27.     private $isadmin=false;
  28.     #[ORM\Column(type'float'nullabletrue)]
  29.     private $proposalAmount;
  30.     #[ORM\Column(type'string'length255nullabletrue)]
  31.     private $subject;
  32.     #[ORM\ManyToOne(targetEntityContactSubjectType::class)]
  33.     private $subjectType;
  34.     #[ORM\ManyToOne(targetEntityContactPipelineStep::class)]
  35.     private ?ContactPipelineStep $currentStep null;
  36.     #[ORM\ManyToOne(targetEntityAccountingFirm::class, inversedBy'contacts')]
  37.     private $accountingFirm;
  38.     #[ORM\Column(type'datetime_immutable'nullabletrue)]
  39.     private ?\DateTimeImmutable $updatedAt null;
  40.     public function getId(): ?int
  41.     {
  42.         return $this->id;
  43.     }
  44.     public function getName(): ?string
  45.     {
  46.         return $this->name;
  47.     }
  48.     public function setName(string $name): self
  49.     {
  50.         $this->name $name;
  51.         return $this;
  52.     }
  53.     public function getEmail(): ?string
  54.     {
  55.         return $this->email;
  56.     }
  57.     public function setEmail(?string $email): self
  58.     {
  59.         $this->email $email;
  60.         return $this;
  61.     }
  62.     public function getPhone(): ?string
  63.     {
  64.         return $this->phone;
  65.     }
  66.     public function setPhone(?string $phone): self
  67.     {
  68.         $this->phone $phone;
  69.         return $this;
  70.     }
  71.     public function getMessage(): ?string
  72.     {
  73.         return $this->message;
  74.     }
  75.     public function setMessage(?string $message): self
  76.     {
  77.         $this->message $message;
  78.         return $this;
  79.     }
  80.     public function getRgpd(): ?bool
  81.     {
  82.         return $this->rgpd;
  83.     }
  84.     public function setRgpd(?bool $rgpd): self
  85.     {
  86.         $this->rgpd $rgpd;
  87.         return $this;
  88.     }
  89.     public function getDateadd(): ?\DateTimeInterface
  90.     {
  91.         return $this->dateadd;
  92.     }
  93.     public function setDateadd(?\DateTimeInterface $dateadd): self
  94.     {
  95.         $this->dateadd $dateadd;
  96.         return $this;
  97.     }
  98.     public function getPage(): ?string
  99.     {
  100.         return $this->page;
  101.     }
  102.     public function setPage(?string $page): self
  103.     {
  104.         $this->page $page;
  105.         return $this;
  106.     }
  107.     public function getIsadmin(): ?bool
  108.     {
  109.         return $this->isadmin;
  110.     }
  111.     public function setIsadmin(?bool $isadmin): self
  112.     {
  113.         $this->isadmin $isadmin;
  114.         return $this;
  115.     }
  116.     public function getProposalAmount(): ?string
  117.     {
  118.         return $this->proposalAmount;
  119.     }
  120.     public function setProposalAmount(?string $proposalAmount): self
  121.     {
  122.         $this->proposalAmount $proposalAmount;
  123.         return $this;
  124.     }
  125.     public function getsubject(): ?string
  126.     {
  127.         return $this->subject;
  128.     }
  129.     public function setsubject(?string $subject): self
  130.     {
  131.         $this->subject $subject;
  132.         return $this;
  133.     }
  134.     public function getSubjectType(): ?ContactSubjectType
  135.     {
  136.         return $this->subjectType;
  137.     }
  138.     public function setSubjectType(?ContactSubjectType $subjectType): self
  139.     {
  140.         $this->subjectType $subjectType;
  141.         return $this;
  142.     }
  143.     public function getCurrentStep(): ?ContactPipelineStep
  144.     {
  145.         return $this->currentStep;
  146.     }
  147.     public function setCurrentStep(?ContactPipelineStep $currentStep): self
  148.     {
  149.         $this->currentStep $currentStep;
  150.         return $this;
  151.     }
  152.     public function getAccountingFirm(): ?AccountingFirm
  153.     {
  154.         return $this->accountingFirm;
  155.     }
  156.     public function setAccountingFirm(?AccountingFirm $accountingFirm): self
  157.     {
  158.         $this->accountingFirm $accountingFirm;
  159.         return $this;
  160.     }
  161.     public function getUpdatedAt(): ?\DateTimeImmutable
  162.     {
  163.         return $this->updatedAt;
  164.     }
  165.     public function setUpdatedAt(?\DateTimeImmutable $updatedAt): self
  166.     {
  167.         $this->updatedAt $updatedAt;
  168.         return $this;
  169.     }
  170. }