<?php
namespace App\Entity;
use App\Repository\ContactLandingRepository;
use Cofondateur\SocleTechniqueBundle\Annotation\CrudField;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=ContactLandingRepository::class)
*/
class ContactLanding
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
* @CrudField(index=true, label="Nom")
*/
private $name;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @CrudField(index=true, label="Prénom")
*/
private $firstname;
/**
* @ORM\Column(type="string", length=255)
* @CrudField(label="Email")
*/
private $email;
/**
* @ORM\Column(type="string", length=255)
* @CrudField(index=true, label="Société/Organisme")
*/
private $society;
/**
* @ORM\Column(type="string", length=255)
* @CrudField(label="Téléphone")
*/
private $phone;
/**
* @ORM\Column(type="string", length=255)
* @CrudField(label="Vous êtes")
*/
private $societyType;
/**
* @ORM\Column(type="string", length=255)
* @CrudField(label="Vous souhaitez")
*/
private $souhait;
/**
* @ORM\Column(type="text")
* @CrudField(label="Sujet")
*/
private $message;
/**
* @ORM\Column(type="datetime")
* @CrudField(index=true, label=null)
*/
private $date;
public function __toString(): string
{
return $this->getId() ? (string) $this->getId() : "N/A";
}
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 getFirstname(): ?string
{
return $this->firstname;
}
public function setFirstname(?string $firstname): self
{
$this->firstname = $firstname;
return $this;
}
public function getEmail(): ?string
{
return $this->email;
}
public function setEmail(string $email): self
{
$this->email = $email;
return $this;
}
public function getSociety(): ?string
{
return $this->society;
}
public function setSociety(string $society): self
{
$this->society = $society;
return $this;
}
public function getPhone(): ?string
{
return $this->phone;
}
public function setPhone(string $phone): self
{
$this->phone = $phone;
return $this;
}
public function getSocietyType(): ?string
{
return $this->societyType;
}
public function setSocietyType(string $societyType): self
{
$this->societyType = $societyType;
return $this;
}
public function getSouhait(): ?string
{
return $this->souhait;
}
public function setSouhait(string $souhait): self
{
$this->souhait = $souhait;
return $this;
}
public function getMessage(): ?string
{
return $this->message;
}
public function setMessage(string $message): self
{
$this->message = $message;
return $this;
}
public function getDate(): ?\DateTimeInterface
{
return $this->date;
}
public function setDate(\DateTimeInterface $date): self
{
$this->date = $date;
return $this;
}
}