<?php
namespace App\Entity;
use App\Repository\ContactFranchiseRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=ContactFranchiseRepository::class)
*/
class ContactFranchise
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
*/
private $nom;
/**
* @ORM\Column(type="string", length=255)
*/
private $prenom;
/**
* @ORM\Column(type="string", length=255)
*/
private $email;
/**
* @ORM\Column(type="string", length=40)
*/
private $telephone;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $adresse;
/**
* @ORM\Column(type="string", length=20, nullable=true)
*/
private $postal;
/**
* @ORM\Column(type="string", length=150, nullable=true)
*/
private $ville;
/**
* @ORM\Column(type="string", length=100)
*/
private $situation;
/**
* @ORM\Column(type="string", length=255)
*/
private $zone;
/**
* @ORM\Column(type="string", length=100)
*/
private $apport;
/**
* @ORM\Column(type="datetime")
*/
private $date;
/**
* @ORM\Column(type="string", length=255)
*/
private $ip;
public function __construct()
{
$this->ip = $_SERVER["REMOTE_ADDR"];
$this->date = new \Datetime;
}
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 getAdresse(): ?string
{
return $this->adresse;
}
public function setAdresse(?string $adresse): self
{
$this->adresse = $adresse;
return $this;
}
public function getPostal(): ?string
{
return $this->postal;
}
public function setPostal(?string $postal): self
{
$this->postal = $postal;
return $this;
}
public function getVille(): ?string
{
return $this->ville;
}
public function setVille(?string $ville): self
{
$this->ville = $ville;
return $this;
}
public function getSituation(): ?string
{
return $this->situation;
}
public function setSituation(string $situation): self
{
$this->situation = $situation;
return $this;
}
public function getZone(): ?string
{
return $this->zone;
}
public function setZone(string $zone): self
{
$this->zone = $zone;
return $this;
}
public function getApport(): ?string
{
return $this->apport;
}
public function setApport(string $apport): self
{
$this->apport = $apport;
return $this;
}
public function getDate(): ?\DateTimeInterface
{
return $this->date;
}
public function setDate(\DateTimeInterface $date): self
{
$this->date = $date;
return $this;
}
public function getIp(): ?string
{
return $this->ip;
}
public function setIp(string $ip): self
{
$this->ip = $ip;
return $this;
}
}