<?php
namespace App\Entity\Ariane;
use App\Repository\ContactRepository;
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 $nom;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $prenom;
/**
* @ORM\Column(type="string", length=255)
*/
private $email;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $telephone;
/**
* @ORM\Column(type="string", length=255)
*/
private $message;
/**
* @ORM\Column(type="datetime")
*/
private $createdAt;
/**
* @ORM\Column(type="string", length=255)
*/
private $enseigne;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $portable;
/**
* @ORM\ManyToOne(targetEntity=ContactObjet::class)
*
* @ORM\JoinColumn(nullable=false)
*/
private $objet;
public function getId(): ?int
{
return $this->id;
}
public function getNom(): ?string
{
return $this->nom;
}
public function setNom(string $nom): self
{
$this->nom = $nom;
return $this;
}
public function getPrenom(): ?string
{
return $this->prenom;
}
public function setPrenom(string $prenom): self
{
$this->prenom = $prenom;
return $this;
}
public function getEmail(): ?string
{
return $this->email;
}
public function setEmail(string $email): self
{
$this->email = $email;
return $this;
}
public function getTelephone(): ?string
{
return $this->telephone;
}
public function setTelephone(string $telephone): self
{
$this->telephone = $telephone;
return $this;
}
public function getMessage(): ?string
{
return $this->message;
}
public function setMessage(string $message): self
{
$this->message = $message;
return $this;
}
public function getCreatedAt(): ?\DateTime
{
return $this->createdAt;
}
public function setCreatedAt(\DateTime $createdAt): self
{
$this->createdAt = $createdAt;
return $this;
}
public function getEnseigne(): ?string
{
return $this->enseigne;
}
public function setEnseigne(string $enseigne): self
{
$this->enseigne = $enseigne;
return $this;
}
public function getPortable(): ?string
{
return $this->portable;
}
public function setPortable(string $portable): self
{
$this->portable = $portable;
return $this;
}
public function getObjet(): ?ContactObjet
{
return $this->objet;
}
public function setObjet(?ContactObjet $objet): self
{
$this->objet = $objet;
return $this;
}
}