src/Entity/FormContact.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\FormContactRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Validator\Constraints as Assert;
  6. /**
  7.  * @ORM\Entity(repositoryClass=FormContactRepository::class)
  8.  */
  9. class FormContact extends BaseForm
  10. {
  11.     /**
  12.      * @ORM\Column(type="string")
  13.      * @Assert\Length(max="255")
  14.      * @Assert\NotBlank()
  15.      */
  16.     private $type_consultation;
  17.     /**
  18.      * @ORM\Column(type="string")
  19.      * @Assert\Length(max="255")
  20.      * @Assert\NotBlank()
  21.      */
  22.     private $type_person;
  23.     /**
  24.      * @ORM\Column(type="string")
  25.      * @Assert\Length(max="255")
  26.      * @Assert\NotBlank()
  27.      */
  28.     private $document_type;
  29.     /**
  30.      * @ORM\Column(type="string")
  31.      * @Assert\Length(max="255")
  32.      * @Assert\NotBlank()
  33.      */
  34.     private $document_number;
  35.     /**
  36.      * @ORM\Column(type="string", nullable=true)
  37.      * @Assert\Length(max="255")
  38.      */
  39.     private $company;
  40.     /**
  41.      * @ORM\Column(type="string")
  42.      * @Assert\Length(max="255")
  43.      * @Assert\NotBlank()
  44.      */
  45.     private $name;
  46.     /**
  47.      * @ORM\Column(type="string")
  48.      * @Assert\Length(max="255")
  49.      * @Assert\NotBlank()
  50.      */
  51.     private $department;
  52.     /**
  53.      * @ORM\Column(type="string")
  54.      * @Assert\Length(max="255")
  55.      * @Assert\NotBlank()
  56.      */
  57.     private $phone;
  58.     /**
  59.      * @ORM\Column(type="string")
  60.      * @Assert\Length(max="255")
  61.      * @Assert\NotBlank()
  62.      */
  63.     private $email;
  64.     /**
  65.      * @ORM\Column(type="text", nullable=true)
  66.      */
  67.     private $message;
  68.     /**
  69.      * FormContact constructor.
  70.      */
  71.     public function __construct()
  72.     {
  73.         parent::__construct();
  74.     }
  75.     public function getTypeConsultation(): ?string
  76.     {
  77.         return $this->type_consultation;
  78.     }
  79.     public function setTypeConsultation(string $type_consultation): self
  80.     {
  81.         $this->type_consultation $type_consultation;
  82.         return $this;
  83.     }
  84.     public function getTypePerson(): ?string
  85.     {
  86.         return $this->type_person;
  87.     }
  88.     public function setTypePerson(string $type_person): self
  89.     {
  90.         $this->type_person $type_person;
  91.         return $this;
  92.     }
  93.     public function getDocumentType(): ?string
  94.     {
  95.         return $this->document_type;
  96.     }
  97.     public function setDocumentType(string $document_type): self
  98.     {
  99.         $this->document_type $document_type;
  100.         return $this;
  101.     }
  102.     public function getDocumentNumber(): ?string
  103.     {
  104.         return $this->document_number;
  105.     }
  106.     public function setDocumentNumber(string $document_number): self
  107.     {
  108.         $this->document_number $document_number;
  109.         return $this;
  110.     }
  111.     public function getCompany(): ?string
  112.     {
  113.         return $this->company;
  114.     }
  115.     public function setCompany(?string $company): self
  116.     {
  117.         $this->company $company;
  118.         return $this;
  119.     }
  120.     public function getName(): ?string
  121.     {
  122.         return $this->name;
  123.     }
  124.     public function setName(string $name): self
  125.     {
  126.         $this->name $name;
  127.         return $this;
  128.     }
  129.     public function getDepartment(): ?string
  130.     {
  131.         return $this->department;
  132.     }
  133.     public function setDepartment(string $department): self
  134.     {
  135.         $this->department $department;
  136.         return $this;
  137.     }
  138.     public function getPhone(): ?string
  139.     {
  140.         return $this->phone;
  141.     }
  142.     public function setPhone(string $phone): self
  143.     {
  144.         $this->phone $phone;
  145.         return $this;
  146.     }
  147.     public function getEmail(): ?string
  148.     {
  149.         return $this->email;
  150.     }
  151.     public function setEmail(string $email): self
  152.     {
  153.         $this->email $email;
  154.         return $this;
  155.     }
  156.     public function getMessage(): ?string
  157.     {
  158.         return $this->message;
  159.     }
  160.     public function setMessage(?string $message): self
  161.     {
  162.         $this->message $message;
  163.         return $this;
  164.     }
  165. }