src/Entity/Contact.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use libphonenumber\PhoneNumber;
  4. /**
  5.  * Une table fictive pour la gestion du formulaire de contact
  6.  */
  7. class Contact
  8. {
  9.     /** @var string */
  10.     private $subject;
  11.     /** @var string */
  12.     private $name;
  13.     /** @var string */
  14.     private $content;
  15.     /** @var string */
  16.     private $email;
  17.     /** @var PhoneNumber */
  18.     private $phone;
  19.     /** @var string */
  20.     private $civility;
  21.     /** @var string */
  22.     private $company;
  23.     public function setSubject(string $subject): self
  24.     {
  25.         $this->subject $subject;
  26.         return $this;
  27.     }
  28.     public function setContent(string $content): self
  29.     {
  30.         $this->content $content;
  31.         return $this;
  32.     }
  33.     public function setEmail(string $email): self
  34.     {
  35.         $this->email $email;
  36.         return $this;
  37.     }
  38.     public function setName(string $name): self
  39.     {
  40.         $this->name $name;
  41.         return $this;
  42.     }
  43.     public function getName(): string
  44.     {
  45.         return $this->name;
  46.     }
  47.     public function getSubject(): string
  48.     {
  49.         return $this->subject;
  50.     }
  51.     public function getContent(): string
  52.     {
  53.         return $this->content;
  54.     }
  55.     public function getEmail(): string
  56.     {
  57.         return $this->email;
  58.     }
  59.     public function setPhone(PhoneNumber $phone): self
  60.     {
  61.         $this->phone $phone;
  62.         return $this;
  63.     }
  64.     public function getPhone(): ?PhoneNumber
  65.     {
  66.         return $this->phone;
  67.     }
  68.     public function setCivility(string $civility): self
  69.     {
  70.         $this->civility $civility;
  71.         return $this;
  72.     }
  73.     public function getCivility(): string
  74.     {
  75.         return  $this->civility;
  76.     }
  77.     public function setCompany(string $company): self
  78.     {
  79.         $this->company $company;
  80.         return $this;
  81.     }
  82.     public function getCompany(): string
  83.     {
  84.         return  $this->company;
  85.     }
  86. }