src/Entity/Contact.php line 11
<?php
namespace App\Entity;
use App\Repository\ContactRepository;
use DateTime;
use Doctrine\DBAL\Types\Types;
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, nullable: true)]
private $fullName;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $email;
#[ORM\Column(type: 'text', nullable: true)]
private $message;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $phone;
#[ORM\Column(type: 'datetime', nullable: true)]
private $created;
#[ORM\ManyToOne(targetEntity: Product::class, inversedBy: 'contacts')]
private $product;
#[ORM\Column(length: 255, nullable: true)]
private ?string $pointZero = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $pointOne = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $pointTwo = null;
#[ORM\Column(nullable: true)]
private ?bool $building = null;
#[ORM\Column(type: Types::SMALLINT, nullable: true)]
private ?int $floor = null;
#[ORM\Column(type: Types::DECIMAL, precision: 10, scale: 2, nullable: true)]
private ?string $totalPrice = null;
#[ORM\Column(length: 50, nullable: true)]
private ?string $formName = null;
#[ORM\Column(nullable: true)]
private ?bool $gtagEventExecuted = null;
public function __construct(){
$this->created = new DateTime();
}
public function getId(): ?int
{
return $this->id;
}
public function getFullName(): ?string
{
return $this->fullName;
}
public function setFullName(?string $fullName): self
{
$this->fullName = $fullName;
return $this;
}
public function getEmail(): ?string
{
return $this->email;
}
public function setEmail(?string $email): self
{
$this->email = $email;
return $this;
}
public function getMessage(): ?string
{
return $this->message;
}
public function setMessage(?string $message): self
{
$this->message = $message;
return $this;
}
public function getPhone(): ?string
{
return $this->phone;
}
public function setPhone(?string $phone): self
{
$this->phone = $phone;
return $this;
}
public function getCreated(): ?\DateTimeInterface
{
return $this->created;
}
public function setCreated(?\DateTimeInterface $created): self
{
$this->created = $created;
return $this;
}
public function getProduct(): ?Product
{
return $this->product;
}
public function setProduct(?Product $product): self
{
$this->product = $product;
return $this;
}
public function getPointZero(): ?string
{
return $this->pointZero;
}
public function setPointZero(?string $pointZero): self
{
$this->pointZero = $pointZero;
return $this;
}
public function getPointOne(): ?string
{
return $this->pointOne;
}
public function setPointOne(?string $pointOne): self
{
$this->pointOne = $pointOne;
return $this;
}
public function getPointTwo(): ?string
{
return $this->pointTwo;
}
public function setPointTwo(?string $pointTwo): self
{
$this->pointTwo = $pointTwo;
return $this;
}
public function isBuilding(): ?bool
{
return $this->building;
}
public function setBuilding(?bool $building): self
{
$this->building = $building;
return $this;
}
public function getFloor(): ?int
{
return $this->floor;
}
public function setFloor(?int $floor): self
{
$this->floor = $floor;
return $this;
}
public function getTotalPrice(): ?string
{
return $this->totalPrice;
}
public function setTotalPrice(?string $totalPrice): self
{
$this->totalPrice = $totalPrice;
return $this;
}
public function getFormName(): ?string
{
return $this->formName;
}
public function setFormName(?string $formName): self
{
$this->formName = $formName;
return $this;
}
public function isGtagEventExecuted(): ?bool
{
return $this->gtagEventExecuted;
}
public function setGtagEventExecuted(?bool $gtagEventExecuted): self
{
$this->gtagEventExecuted = $gtagEventExecuted;
return $this;
}
}