src/Entity/ContactLanding.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ContactLandingRepository;
  4. use Cofondateur\SocleTechniqueBundle\Annotation\CrudField;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass=ContactLandingRepository::class)
  8.  */
  9. class ContactLanding
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="string", length=255)
  19.      * @CrudField(index=true, label="Nom")
  20.      */
  21.     private $name;
  22.     /**
  23.      * @ORM\Column(type="string", length=255, nullable=true)
  24.      * @CrudField(index=true, label="Prénom")
  25.      */
  26.     private $firstname;
  27.     /**
  28.      * @ORM\Column(type="string", length=255)
  29.      * @CrudField(label="Email")
  30.      */
  31.     private $email;
  32.     /**
  33.      * @ORM\Column(type="string", length=255)
  34.      * @CrudField(index=true, label="Société/Organisme")
  35.      */
  36.     private $society;
  37.     /**
  38.      * @ORM\Column(type="string", length=255)
  39.      * @CrudField(label="Téléphone")
  40.      */
  41.     private $phone;
  42.     /**
  43.      * @ORM\Column(type="string", length=255)
  44.      * @CrudField(label="Vous êtes")
  45.      */
  46.     private $societyType;
  47.     /**
  48.      * @ORM\Column(type="string", length=255)
  49.      * @CrudField(label="Vous souhaitez")
  50.      */
  51.     private $souhait;
  52.     /**
  53.      * @ORM\Column(type="text")
  54.      * @CrudField(label="Sujet")
  55.      */
  56.     private $message;
  57.     /**
  58.      * @ORM\Column(type="datetime")
  59.      * @CrudField(index=true, label=null)
  60.      */
  61.     private $date;
  62.     public function __toString(): string
  63.     {
  64.         return $this->getId() ? (string) $this->getId() : "N/A";
  65.     }
  66.     public function getId(): ?int
  67.     {
  68.         return $this->id;
  69.     }
  70.     public function getName(): ?string
  71.     {
  72.         return $this->name;
  73.     }
  74.     public function setName(string $name): self
  75.     {
  76.         $this->name $name;
  77.         return $this;
  78.     }
  79.     public function getFirstname(): ?string
  80.     {
  81.         return $this->firstname;
  82.     }
  83.     public function setFirstname(?string $firstname): self
  84.     {
  85.         $this->firstname $firstname;
  86.         return $this;
  87.     }
  88.     public function getEmail(): ?string
  89.     {
  90.         return $this->email;
  91.     }
  92.     public function setEmail(string $email): self
  93.     {
  94.         $this->email $email;
  95.         return $this;
  96.     }
  97.     public function getSociety(): ?string
  98.     {
  99.         return $this->society;
  100.     }
  101.     public function setSociety(string $society): self
  102.     {
  103.         $this->society $society;
  104.         return $this;
  105.     }
  106.     public function getPhone(): ?string
  107.     {
  108.         return $this->phone;
  109.     }
  110.     public function setPhone(string $phone): self
  111.     {
  112.         $this->phone $phone;
  113.         return $this;
  114.     }
  115.     public function getSocietyType(): ?string
  116.     {
  117.         return $this->societyType;
  118.     }
  119.     public function setSocietyType(string $societyType): self
  120.     {
  121.         $this->societyType $societyType;
  122.         return $this;
  123.     }
  124.     public function getSouhait(): ?string
  125.     {
  126.         return $this->souhait;
  127.     }
  128.     public function setSouhait(string $souhait): self
  129.     {
  130.         $this->souhait $souhait;
  131.         return $this;
  132.     }
  133.     public function getMessage(): ?string
  134.     {
  135.         return $this->message;
  136.     }
  137.     public function setMessage(string $message): self
  138.     {
  139.         $this->message $message;
  140.         return $this;
  141.     }
  142.     public function getDate(): ?\DateTimeInterface
  143.     {
  144.         return $this->date;
  145.     }
  146.     public function setDate(\DateTimeInterface $date): self
  147.     {
  148.         $this->date $date;
  149.         return $this;
  150.     }
  151. }