<?php
namespace App\Entity;
use App\Repository\FormPromotionRepository;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
/**
* @ORM\Entity(repositoryClass=FormPromotionRepository::class)
*/
class FormPromotion extends BaseForm
{
/**
* @ORM\Column(type="string")
* @Assert\Length(max="255")
* @Assert\NotBlank()
*/
private $promotion;
/**
* @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;
/**
* FormPromotion constructor.
*/
public function __construct()
{
parent::__construct();
}
public function getPromotion(): ?string
{
return $this->promotion;
}
public function setPromotion(string $promotion): self
{
$this->promotion = $promotion;
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;
}
}