<?php
namespace App\Entity;
use App\Repository\FormContactRepository;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
/**
* @ORM\Entity(repositoryClass=FormContactRepository::class)
*/
class FormContact extends BaseForm
{
/**
* @ORM\Column(type="string")
* @Assert\Length(max="255")
* @Assert\NotBlank()
*/
private $type_consultation;
/**
* @ORM\Column(type="string")
* @Assert\Length(max="255")
* @Assert\NotBlank()
*/
private $type_person;
/**
* @ORM\Column(type="string")
* @Assert\Length(max="255")
* @Assert\NotBlank()
*/
private $document_type;
/**
* @ORM\Column(type="string")
* @Assert\Length(max="255")
* @Assert\NotBlank()
*/
private $document_number;
/**
* @ORM\Column(type="string", nullable=true)
* @Assert\Length(max="255")
*/
private $company;
/**
* @ORM\Column(type="string")
* @Assert\Length(max="255")
* @Assert\NotBlank()
*/
private $name;
/**
* @ORM\Column(type="string")
* @Assert\Length(max="255")
* @Assert\NotBlank()
*/
private $department;
/**
* @ORM\Column(type="string")
* @Assert\Length(max="255")
* @Assert\NotBlank()
*/
private $phone;
/**
* @ORM\Column(type="string")
* @Assert\Length(max="255")
* @Assert\NotBlank()
*/
private $email;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $message;
/**
* FormContact constructor.
*/
public function __construct()
{
parent::__construct();
}
public function getTypeConsultation(): ?string
{
return $this->type_consultation;
}
public function setTypeConsultation(string $type_consultation): self
{
$this->type_consultation = $type_consultation;
return $this;
}
public function getTypePerson(): ?string
{
return $this->type_person;
}
public function setTypePerson(string $type_person): self
{
$this->type_person = $type_person;
return $this;
}
public function getDocumentType(): ?string
{
return $this->document_type;
}
public function setDocumentType(string $document_type): self
{
$this->document_type = $document_type;
return $this;
}
public function getDocumentNumber(): ?string
{
return $this->document_number;
}
public function setDocumentNumber(string $document_number): self
{
$this->document_number = $document_number;
return $this;
}
public function getCompany(): ?string
{
return $this->company;
}
public function setCompany(string $company): self
{
$this->company = $company;
return $this;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(string $name): self
{
$this->name = $name;
return $this;
}
public function getDepartment(): ?string
{
return $this->department;
}
public function setDepartment(string $department): self
{
$this->department = $department;
return $this;
}
public function getPhone(): ?string
{
return $this->phone;
}
public function setPhone(string $phone): self
{
$this->phone = $phone;
return $this;
}
public function getEmail(): ?string
{
return $this->email;
}
public function setEmail(string $email): self
{
$this->email = $email;
return $this;
}
public function getMessage(): ?string
{
return $this->message;
}
public function setMessage(?string $message): self
{
$this->message = $message;
return $this;
}
}