src/Entity/ContactFranchise.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ContactFranchiseRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=ContactFranchiseRepository::class)
  7.  */
  8. class ContactFranchise
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="string", length=255)
  18.      */
  19.     private $nom;
  20.     /**
  21.      * @ORM\Column(type="string", length=255)
  22.      */
  23.     private $prenom;
  24.     /**
  25.      * @ORM\Column(type="string", length=255)
  26.      */
  27.     private $email;
  28.     /**
  29.      * @ORM\Column(type="string", length=40)
  30.      */
  31.     private $telephone;
  32.     /**
  33.      * @ORM\Column(type="string", length=255, nullable=true)
  34.      */
  35.     private $adresse;
  36.     /**
  37.      * @ORM\Column(type="string", length=20, nullable=true)
  38.      */
  39.     private $postal;
  40.     /**
  41.      * @ORM\Column(type="string", length=150, nullable=true)
  42.      */
  43.     private $ville;
  44.     /**
  45.      * @ORM\Column(type="string", length=100)
  46.      */
  47.     private $situation;
  48.     /**
  49.      * @ORM\Column(type="string", length=255)
  50.      */
  51.     private $zone;
  52.     /**
  53.      * @ORM\Column(type="string", length=100)
  54.      */
  55.     private $apport;
  56.     /**
  57.      * @ORM\Column(type="datetime")
  58.      */
  59.     private $date;
  60.     /**
  61.      * @ORM\Column(type="string", length=255)
  62.      */
  63.     private $ip;
  64.     public function __construct() 
  65.     {        
  66.         $this->ip $_SERVER["REMOTE_ADDR"];
  67.         $this->date = new \Datetime;
  68.     }
  69.     public function getId(): ?int
  70.     {
  71.         return $this->id;
  72.     }
  73.     public function getNom(): ?string
  74.     {
  75.         return $this->nom;
  76.     }
  77.     public function setNom(string $nom): self
  78.     {
  79.         $this->nom $nom;
  80.         return $this;
  81.     }
  82.     public function getPrenom(): ?string
  83.     {
  84.         return $this->prenom;
  85.     }
  86.     public function setPrenom(string $prenom): self
  87.     {
  88.         $this->prenom $prenom;
  89.         return $this;
  90.     }
  91.     public function getEmail(): ?string
  92.     {
  93.         return $this->email;
  94.     }
  95.     public function setEmail(string $email): self
  96.     {
  97.         $this->email $email;
  98.         return $this;
  99.     }
  100.     public function getTelephone(): ?string
  101.     {
  102.         return $this->telephone;
  103.     }
  104.     public function setTelephone(string $telephone): self
  105.     {
  106.         $this->telephone $telephone;
  107.         return $this;
  108.     }
  109.     public function getAdresse(): ?string
  110.     {
  111.         return $this->adresse;
  112.     }
  113.     public function setAdresse(?string $adresse): self
  114.     {
  115.         $this->adresse $adresse;
  116.         return $this;
  117.     }
  118.     public function getPostal(): ?string
  119.     {
  120.         return $this->postal;
  121.     }
  122.     public function setPostal(?string $postal): self
  123.     {
  124.         $this->postal $postal;
  125.         return $this;
  126.     }
  127.     public function getVille(): ?string
  128.     {
  129.         return $this->ville;
  130.     }
  131.     public function setVille(?string $ville): self
  132.     {
  133.         $this->ville $ville;
  134.         return $this;
  135.     }
  136.     public function getSituation(): ?string
  137.     {
  138.         return $this->situation;
  139.     }
  140.     public function setSituation(string $situation): self
  141.     {
  142.         $this->situation $situation;
  143.         return $this;
  144.     }
  145.     public function getZone(): ?string
  146.     {
  147.         return $this->zone;
  148.     }
  149.     public function setZone(string $zone): self
  150.     {
  151.         $this->zone $zone;
  152.         return $this;
  153.     }
  154.     public function getApport(): ?string
  155.     {
  156.         return $this->apport;
  157.     }
  158.     public function setApport(string $apport): self
  159.     {
  160.         $this->apport $apport;
  161.         return $this;
  162.     }
  163.     public function getDate(): ?\DateTimeInterface
  164.     {
  165.         return $this->date;
  166.     }
  167.     public function setDate(\DateTimeInterface $date): self
  168.     {
  169.         $this->date $date;
  170.         return $this;
  171.     }
  172.     public function getIp(): ?string
  173.     {
  174.         return $this->ip;
  175.     }
  176.     public function setIp(string $ip): self
  177.     {
  178.         $this->ip $ip;
  179.         return $this;
  180.     }
  181. }