src/Entity/Contact.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ContactRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Table(name="website_commercial")
  7.  * @ORM\Entity(repositoryClass=ContactRepository::class)
  8.  */
  9. class Contact
  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.      */
  20.     private $name;
  21.     /**
  22.      * @ORM\Column(type="string", length=255, nullable=true)
  23.      */
  24.     private $last_name;
  25.     /**
  26.      * @ORM\Column(type="string", length=255, nullable=true)
  27.      */
  28.     private $compagny_name;
  29.     /**
  30.      * @ORM\Column(type="string", length=8, options={"default" : "+33"})
  31.      */
  32.     private $country_code;
  33.     /**
  34.      * @ORM\Column(type="string", length=18, nullable=true)
  35.      */
  36.     private $phone;
  37.     /**
  38.      * @ORM\Column(type="string", length=255)
  39.      */
  40.     private $email;
  41.     /**
  42.      * @ORM\Column(type="text")
  43.      */
  44.     private $message;
  45.     /**
  46.      * @ORM\Column(type="integer", options={"default" : 0})
  47.      */
  48.     private $seeder false;
  49.     /**
  50.      * @ORM\Column(type="string", length=500)
  51.      */
  52.     private $hash_talk;
  53.     /**
  54.      * @ORM\Column(type="string", length=255, nullable=true)
  55.      */
  56.     private $compagny_type;
  57.     public function getId(): ?int
  58.     {
  59.         return $this->id;
  60.     }
  61.     public function getName(): ?string
  62.     {
  63.         return $this->name;
  64.     }
  65.     public function setName(string $name): self
  66.     {
  67.         $this->name $name;
  68.         return $this;
  69.     }
  70.     public function getLastName(): ?string
  71.     {
  72.         return $this->last_name;
  73.     }
  74.     public function setLastName(?string $last_name): self
  75.     {
  76.         $this->last_name $last_name;
  77.         return $this;
  78.     }
  79.     public function getCompagnyName(): ?string
  80.     {
  81.         return $this->compagny_name;
  82.     }
  83.     public function setCompagnyName(?string $compagny_name): self
  84.     {
  85.         $this->compagny_name $compagny_name;
  86.         return $this;
  87.     }
  88.     public function getCountryCode(): ?string
  89.     {
  90.         return $this->country_code;
  91.     }
  92.     public function setCountryCode(string $country_code): self
  93.     {
  94.         $this->country_code $country_code;
  95.         return $this;
  96.     }
  97.     public function getPhone(): ?string
  98.     {
  99.         return $this->phone;
  100.     }
  101.     public function setPhone(?string $phone): self
  102.     {
  103.         $this->phone $phone;
  104.         return $this;
  105.     }
  106.     public function getEmail(): ?string
  107.     {
  108.         return $this->email;
  109.     }
  110.     public function setEmail(string $email): self
  111.     {
  112.         $this->email $email;
  113.         return $this;
  114.     }
  115.     public function getMessage(): ?string
  116.     {
  117.         return $this->message;
  118.     }
  119.     public function setMessage(string $message): self
  120.     {
  121.         $this->message $message;
  122.         return $this;
  123.     }
  124.     public function getSeeder(): ?int
  125.     {
  126.         return $this->seeder;
  127.     }
  128.     public function setSeeder(int $seeder): self
  129.     {
  130.         $this->seeder $seeder;
  131.         return $this;
  132.     }
  133.     public function getHashTalk(): ?string
  134.     {
  135.         return $this->hash_talk;
  136.     }
  137.     public function setHashTalk(string $hash_talk): self
  138.     {
  139.         $this->hash_talk $hash_talk;
  140.         return $this;
  141.     }
  142.     public function getCompagnyType(): ?string
  143.     {
  144.         return $this->compagny_type;
  145.     }
  146.     public function setCompagnyType(?string $compagny_type): self
  147.     {
  148.         $this->compagny_type $compagny_type;
  149.         return $this;
  150.     }
  151. }