src/Model/ContactDTO.php line 5

Open in your IDE?
  1. <?php
  2. namespace App\Model;
  3. class ContactDTO
  4. {
  5.     /**
  6.      * @var string|null
  7.      */
  8.     private $firstname;
  9.     /**
  10.      * @var string|null
  11.      */
  12.     private $lastname;
  13.     /**
  14.      * @var string|null
  15.      */
  16.     private $email;
  17.     /**
  18.      * @var string|null
  19.      */
  20.     private $phone;
  21.     /**
  22.      * @var string|null
  23.      */
  24.     private $message;
  25.     /**
  26.      * @var bool|null
  27.      */
  28.     private $sign;
  29.     /**
  30.      * @return string|null
  31.      */
  32.     public function getFirstname(): ?string
  33.     {
  34.         return $this->firstname;
  35.     }
  36.     /**
  37.      * @param string|null $firstname
  38.      * @return ContactDTO
  39.      */
  40.     public function setFirstname(?string $firstname): ContactDTO
  41.     {
  42.         $this->firstname $firstname;
  43.         return $this;
  44.     }
  45.     /**
  46.      * @return string|null
  47.      */
  48.     public function getLastname(): ?string
  49.     {
  50.         return $this->lastname;
  51.     }
  52.     /**
  53.      * @param string|null $lastname
  54.      * @return ContactDTO
  55.      */
  56.     public function setLastname(?string $lastname): ContactDTO
  57.     {
  58.         $this->lastname $lastname;
  59.         return $this;
  60.     }
  61.     /**
  62.      * @return string|null
  63.      */
  64.     public function getEmail(): ?string
  65.     {
  66.         return $this->email;
  67.     }
  68.     /**
  69.      * @param string|null $email
  70.      * @return ContactDTO
  71.      */
  72.     public function setEmail(?string $email): ContactDTO
  73.     {
  74.         $this->email $email;
  75.         return $this;
  76.     }
  77.     /**
  78.      * @return string|null
  79.      */
  80.     public function getPhone(): ?string
  81.     {
  82.         return $this->phone;
  83.     }
  84.     /**
  85.      * @param string|null $phone
  86.      * @return ContactDTO
  87.      */
  88.     public function setPhone(?string $phone): ContactDTO
  89.     {
  90.         $this->phone $phone;
  91.         return $this;
  92.     }
  93.     /**
  94.      * @return string|null
  95.      */
  96.     public function getMessage(): ?string
  97.     {
  98.         return $this->message;
  99.     }
  100.     /**
  101.      * @param string|null $message
  102.      * @return ContactDTO
  103.      */
  104.     public function setMessage(?string $message): ContactDTO
  105.     {
  106.         $this->message $message;
  107.         return $this;
  108.     }
  109.     /**
  110.      * @return bool|null
  111.      */
  112.     public function getSign(): ?bool
  113.     {
  114.         return $this->sign;
  115.     }
  116.     /**
  117.      * @param bool|null $sign
  118.      * @return ContactDTO
  119.      */
  120.     public function setSign(?bool $sign): ContactDTO
  121.     {
  122.         $this->sign $sign;
  123.         return $this;
  124.     }
  125. }