src/Model/ContactModel.php line 7

Open in your IDE?
  1. <?php
  2. namespace App\Model;
  3. class ContactModel
  4. {
  5.     /**
  6.      * @var string
  7.      */
  8.     private string $name;
  9.     /**
  10.      * @var string
  11.      */
  12.     private string $firstName;
  13.     /**
  14.      * @var string
  15.      */
  16.     private string $street;
  17.     /**
  18.      * @var string
  19.      */
  20.     private string $postalCode;
  21.     /**
  22.      * @var string
  23.      */
  24.     private string $city;
  25.     /**
  26.      * @var string
  27.      */
  28.     private string $email;
  29.     /**
  30.      * @var string
  31.      */
  32.     private string $telephone;
  33.     /**
  34.      * @var string
  35.      */
  36.     private string $message;
  37.     /**
  38.      * @return string
  39.      */
  40.     public function getName(): string
  41.     {
  42.         return $this->name;
  43.     }
  44.     /**
  45.      * @param string $name
  46.      */
  47.     public function setName(string $name): self
  48.     {
  49.         $this->name $name;
  50.         return $this;
  51.     }
  52.     /**
  53.      * @return string
  54.      */
  55.     public function getFirstName(): string
  56.     {
  57.         return $this->firstName;
  58.     }
  59.     /**
  60.      * @param string $firstName
  61.      */
  62.     public function setFirstName(string $firstName): self
  63.     {
  64.         $this->firstName $firstName;
  65.         return $this;
  66.     }
  67.     /**
  68.      * @return string
  69.      */
  70.     public function getStreet(): string
  71.     {
  72.         return $this->street;
  73.     }
  74.     /**
  75.      * @param string $street
  76.      */
  77.     public function setStreet(string $street): self
  78.     {
  79.         $this->street $street;
  80.         return $this;
  81.     }
  82.     /**
  83.      * @return string
  84.      */
  85.     public function getPostalCode(): string
  86.     {
  87.         return $this->postalCode;
  88.     }
  89.     /**
  90.      * @param string $postalCode
  91.      */
  92.     public function setPostalCode(string $postalCode): self
  93.     {
  94.         $this->postalCode $postalCode;
  95.         return $this;
  96.     }
  97.     /**
  98.      * @return string
  99.      */
  100.     public function getCity(): string
  101.     {
  102.         return $this->city;
  103.     }
  104.     /**
  105.      * @param string $city
  106.      */
  107.     public function setCity(string $city): self
  108.     {
  109.         $this->city $city;
  110.         return $this;
  111.     }
  112.     /**
  113.      * @return string
  114.      */
  115.     public function getEmail(): string
  116.     {
  117.         return $this->email;
  118.     }
  119.     /**
  120.      * @param string $email
  121.      */
  122.     public function setEmail(string $email): self
  123.     {
  124.         $this->email $email;
  125.         return $this;
  126.     }
  127.     /**
  128.      * @return string
  129.      */
  130.     public function getTelephone(): string
  131.     {
  132.         return $this->telephone;
  133.     }
  134.     /**
  135.      * @param string $telephone
  136.      */
  137.     public function setTelephone(string $telephone): self
  138.     {
  139.         $this->telephone $telephone;
  140.         return $this;
  141.     }
  142.     /**
  143.      * @return string
  144.      */
  145.     public function getMessage(): string
  146.     {
  147.         return $this->message;
  148.     }
  149.     /**
  150.      * @param string $message
  151.      */
  152.     public function setMessage(string $message): self
  153.     {
  154.         $this->message $message;
  155.         return $this;
  156.     }
  157. }