src/Entity/Ariane/Contact.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Ariane;
  3. use App\Repository\ContactRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=ContactRepository::class)
  7.  */
  8. class Contact
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      *
  13.      * @ORM\GeneratedValue
  14.      *
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\Column(type="string", length=255, nullable=true)
  20.      */
  21.     private $nom;
  22.     /**
  23.      * @ORM\Column(type="string", length=255, nullable=true)
  24.      */
  25.     private $prenom;
  26.     /**
  27.      * @ORM\Column(type="string", length=255)
  28.      */
  29.     private $email;
  30.     /**
  31.      * @ORM\Column(type="string", length=255, nullable=true)
  32.      */
  33.     private $telephone;
  34.     /**
  35.      * @ORM\Column(type="string", length=255)
  36.      */
  37.     private $message;
  38.     /**
  39.      * @ORM\Column(type="datetime")
  40.      */
  41.     private $createdAt;
  42.     /**
  43.      * @ORM\Column(type="string", length=255)
  44.      */
  45.     private $enseigne;
  46.     /**
  47.      * @ORM\Column(type="string", length=255, nullable=true)
  48.      */
  49.     private $portable;
  50.     /**
  51.      * @ORM\ManyToOne(targetEntity=ContactObjet::class)
  52.      *
  53.      * @ORM\JoinColumn(nullable=false)
  54.      */
  55.     private $objet;
  56.     public function getId(): ?int
  57.     {
  58.         return $this->id;
  59.     }
  60.     public function getNom(): ?string
  61.     {
  62.         return $this->nom;
  63.     }
  64.     public function setNom(string $nom): self
  65.     {
  66.         $this->nom $nom;
  67.         return $this;
  68.     }
  69.     public function getPrenom(): ?string
  70.     {
  71.         return $this->prenom;
  72.     }
  73.     public function setPrenom(string $prenom): self
  74.     {
  75.         $this->prenom $prenom;
  76.         return $this;
  77.     }
  78.     public function getEmail(): ?string
  79.     {
  80.         return $this->email;
  81.     }
  82.     public function setEmail(string $email): self
  83.     {
  84.         $this->email $email;
  85.         return $this;
  86.     }
  87.     public function getTelephone(): ?string
  88.     {
  89.         return $this->telephone;
  90.     }
  91.     public function setTelephone(string $telephone): self
  92.     {
  93.         $this->telephone $telephone;
  94.         return $this;
  95.     }
  96.     public function getMessage(): ?string
  97.     {
  98.         return $this->message;
  99.     }
  100.     public function setMessage(string $message): self
  101.     {
  102.         $this->message $message;
  103.         return $this;
  104.     }
  105.     public function getCreatedAt(): ?\DateTime
  106.     {
  107.         return $this->createdAt;
  108.     }
  109.     public function setCreatedAt(\DateTime $createdAt): self
  110.     {
  111.         $this->createdAt $createdAt;
  112.         return $this;
  113.     }
  114.     public function getEnseigne(): ?string
  115.     {
  116.         return $this->enseigne;
  117.     }
  118.     public function setEnseigne(string $enseigne): self
  119.     {
  120.         $this->enseigne $enseigne;
  121.         return $this;
  122.     }
  123.     public function getPortable(): ?string
  124.     {
  125.         return $this->portable;
  126.     }
  127.     public function setPortable(string $portable): self
  128.     {
  129.         $this->portable $portable;
  130.         return $this;
  131.     }
  132.     public function getObjet(): ?ContactObjet
  133.     {
  134.         return $this->objet;
  135.     }
  136.     public function setObjet(?ContactObjet $objet): self
  137.     {
  138.         $this->objet $objet;
  139.         return $this;
  140.     }
  141. }