src/Entity/Contact.php line 11

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ContactRepository;
  4. use DateTime;
  5. use Doctrine\DBAL\Types\Types;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassContactRepository::class)]
  8. class Contact
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column(type'integer')]
  13.     private $id;
  14.     #[ORM\Column(type'string'length255nullabletrue)]
  15.     private $fullName;
  16.     #[ORM\Column(type'string'length255nullabletrue)]
  17.     private $email;
  18.     #[ORM\Column(type'text'nullabletrue)]
  19.     private $message;
  20.     #[ORM\Column(type'string'length255nullabletrue)]
  21.     private $phone;
  22.     #[ORM\Column(type'datetime'nullabletrue)]
  23.     private $created;
  24.     #[ORM\ManyToOne(targetEntityProduct::class, inversedBy'contacts')]
  25.     private $product;
  26.     #[ORM\Column(length255nullabletrue)]
  27.     private ?string $pointZero null;
  28.     #[ORM\Column(length255nullabletrue)]
  29.     private ?string $pointOne null;
  30.     #[ORM\Column(length255nullabletrue)]
  31.     private ?string $pointTwo null;
  32.     #[ORM\Column(nullabletrue)]
  33.     private ?bool $building null;
  34.     #[ORM\Column(typeTypes::SMALLINTnullabletrue)]
  35.     private ?int $floor null;
  36.     #[ORM\Column(typeTypes::DECIMALprecision10scale2nullabletrue)]
  37.     private ?string $totalPrice null;
  38.     #[ORM\Column(length50nullabletrue)]
  39.     private ?string $formName null;
  40.     #[ORM\Column(nullabletrue)]
  41.     private ?bool $gtagEventExecuted null;
  42.     public function __construct(){
  43.         $this->created = new DateTime();
  44.     }
  45.     public function getId(): ?int
  46.     {
  47.         return $this->id;
  48.     }
  49.     public function getFullName(): ?string
  50.     {
  51.         return $this->fullName;
  52.     }
  53.     public function setFullName(?string $fullName): self
  54.     {
  55.         $this->fullName $fullName;
  56.         return $this;
  57.     }
  58.     public function getEmail(): ?string
  59.     {
  60.         return $this->email;
  61.     }
  62.     public function setEmail(?string $email): self
  63.     {
  64.         $this->email $email;
  65.         return $this;
  66.     }
  67.     public function getMessage(): ?string
  68.     {
  69.         return $this->message;
  70.     }
  71.     public function setMessage(?string $message): self
  72.     {
  73.         $this->message $message;
  74.         return $this;
  75.     }
  76.     public function getPhone(): ?string
  77.     {
  78.         return $this->phone;
  79.     }
  80.     public function setPhone(?string $phone): self
  81.     {
  82.         $this->phone $phone;
  83.         return $this;
  84.     }
  85.     public function getCreated(): ?\DateTimeInterface
  86.     {
  87.         return $this->created;
  88.     }
  89.     public function setCreated(?\DateTimeInterface $created): self
  90.     {
  91.         $this->created $created;
  92.         return $this;
  93.     }
  94.     public function getProduct(): ?Product
  95.     {
  96.         return $this->product;
  97.     }
  98.     public function setProduct(?Product $product): self
  99.     {
  100.         $this->product $product;
  101.         return $this;
  102.     }
  103.     public function getPointZero(): ?string
  104.     {
  105.         return $this->pointZero;
  106.     }
  107.     public function setPointZero(?string $pointZero): self
  108.     {
  109.         $this->pointZero $pointZero;
  110.         return $this;
  111.     }
  112.     public function getPointOne(): ?string
  113.     {
  114.         return $this->pointOne;
  115.     }
  116.     public function setPointOne(?string $pointOne): self
  117.     {
  118.         $this->pointOne $pointOne;
  119.         return $this;
  120.     }
  121.     public function getPointTwo(): ?string
  122.     {
  123.         return $this->pointTwo;
  124.     }
  125.     public function setPointTwo(?string $pointTwo): self
  126.     {
  127.         $this->pointTwo $pointTwo;
  128.         return $this;
  129.     }
  130.     public function isBuilding(): ?bool
  131.     {
  132.         return $this->building;
  133.     }
  134.     public function setBuilding(?bool $building): self
  135.     {
  136.         $this->building $building;
  137.         return $this;
  138.     }
  139.     public function getFloor(): ?int
  140.     {
  141.         return $this->floor;
  142.     }
  143.     public function setFloor(?int $floor): self
  144.     {
  145.         $this->floor $floor;
  146.         return $this;
  147.     }
  148.     public function getTotalPrice(): ?string
  149.     {
  150.         return $this->totalPrice;
  151.     }
  152.     public function setTotalPrice(?string $totalPrice): self
  153.     {
  154.         $this->totalPrice $totalPrice;
  155.         return $this;
  156.     }
  157.     public function getFormName(): ?string
  158.     {
  159.         return $this->formName;
  160.     }
  161.     public function setFormName(?string $formName): self
  162.     {
  163.         $this->formName $formName;
  164.         return $this;
  165.     }
  166.     public function isGtagEventExecuted(): ?bool
  167.     {
  168.         return $this->gtagEventExecuted;
  169.     }
  170.     public function setGtagEventExecuted(?bool $gtagEventExecuted): self
  171.     {
  172.         $this->gtagEventExecuted $gtagEventExecuted;
  173.         return $this;
  174.     }
  175. }