src/Cms/Modules/PeopleBundle/Entity/ContactSubmission.php line 19

Open in your IDE?
  1. <?php
  2. namespace Cms\Modules\PeopleBundle\Entity;
  3. use Cms\TenantBundle\Entity\TenantedEntity;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * Class ContactSubmission
  7.  * @package Cms\Modules\PeopleBundle\Entity
  8.  *
  9.  * @ORM\Entity(
  10.  *     repositoryClass = "Cms\Modules\PeopleBundle\Doctrine\ContactSubmissionRepository"
  11.  * )
  12.  * @ORM\Table(
  13.  *     name = "cms__modules__people__contact_submission"
  14.  * )
  15.  */
  16. class ContactSubmission extends TenantedEntity
  17. {
  18.     /**
  19.      * @var string
  20.      *
  21.      * @ORM\Column(
  22.      *     type = "string",
  23.      *     nullable = false
  24.      * )
  25.      */
  26.     protected string $ip;
  27.     /**
  28.      * @var bool
  29.      *
  30.      * @ORM\Column(
  31.      *     type = "boolean",
  32.      *     nullable = false,
  33.      *     options = {
  34.      *         "default" = false
  35.      *     }
  36.      * )
  37.      */
  38.     protected bool $status false;
  39.     /**
  40.      * @var string
  41.      */
  42.     protected string $email;
  43.     /**
  44.      * @var string
  45.      */
  46.     protected string $name;
  47.     /**
  48.      * @var string
  49.      */
  50.     protected string $formName;
  51.     /**
  52.      * @var string
  53.      */
  54.     protected string $formEmail;
  55.     /**
  56.      * @var string
  57.      */
  58.     protected string $formMessage;
  59.     /**
  60.      * @return string
  61.      */
  62.     public function getIp(): string
  63.     {
  64.         return $this->ip;
  65.     }
  66.     /**
  67.      * @param string $ip
  68.      * @return $this
  69.      */
  70.     public function setIp(string $ip): self
  71.     {
  72.         $this->ip $ip;
  73.         return $this;
  74.     }
  75.     /**
  76.      * @return bool
  77.      */
  78.     public function getStatus(): bool
  79.     {
  80.         return $this->status;
  81.     }
  82.     /**
  83.      * @param bool $status
  84.      * @return $this
  85.      */
  86.     public function setStatus(bool $status): self
  87.     {
  88.         $this->status $status;
  89.         return $this;
  90.     }
  91.     /**
  92.      * @return string
  93.      */
  94.     public function getEmail(): string
  95.     {
  96.         return $this->email;
  97.     }
  98.     /**
  99.      * @param string $email
  100.      * @return $this
  101.      */
  102.     public function setEmail(string $email): self
  103.     {
  104.         $this->email $email;
  105.         return $this;
  106.     }
  107.     /**
  108.      * @return string
  109.      */
  110.     public function getName(): string
  111.     {
  112.         return $this->name;
  113.     }
  114.     /**
  115.      * @param string $name
  116.      * @return $this
  117.      */
  118.     public function setName(string $name): self
  119.     {
  120.         $this->name $name;
  121.         return $this;
  122.     }
  123.     /**
  124.      * @return string
  125.      */
  126.     public function getFormName(): string
  127.     {
  128.         return $this->formName;
  129.     }
  130.     /**
  131.      * @param string $formName
  132.      * @return $this
  133.      */
  134.     public function setFormName(string $formName): self
  135.     {
  136.         $this->formName $formName;
  137.         return $this;
  138.     }
  139.     /**
  140.      * @return string
  141.      */
  142.     public function getFormEmail(): string
  143.     {
  144.         return $this->formEmail;
  145.     }
  146.     /**
  147.      * @param string $formEmail
  148.      * @return $this
  149.      */
  150.     public function setFormEmail(string $formEmail): self
  151.     {
  152.         $this->formEmail $formEmail;
  153.         return $this;
  154.     }
  155.     /**
  156.      * @return string
  157.      */
  158.     public function getFormMessage(): string
  159.     {
  160.         return $this->formMessage;
  161.     }
  162.     /**
  163.      * @param string $formMessage
  164.      * @return $this
  165.      */
  166.     public function setFormMessage(string $formMessage): self
  167.     {
  168.         $this->formMessage $formMessage;
  169.         return $this;
  170.     }
  171. }