<?phpnamespace App\Entity;use App\Repository\FormPromoRepository;use Doctrine\ORM\Mapping as ORM;use Symfony\Component\Validator\Constraints as Assert;/** * @ORM\Entity(repositoryClass=FormPromoRepository::class) */class FormPromo extends BaseForm{ /** * @ORM\Column(type="string") * @Assert\Length(max="255") * @Assert\NotBlank() */ private $name; /** * @ORM\Column(type="string") * @Assert\Length(max="255") * @Assert\NotBlank() */ private $lastname; /** * @ORM\Column(type="string") * @Assert\Length(max="255") * @Assert\NotBlank() */ private $email; /** * @ORM\Column(type="string") * @Assert\Length(max="255") * @Assert\NotBlank() */ private $phone; /** * @ORM\Column(type="string") * @Assert\Length(max="255") * @Assert\NotBlank() */ private $departament; /** * @ORM\Column(type="string", nullable=true) * @Assert\Length(max="255") */ private $factory; /** * @ORM\Column(type="string", nullable=true) * @Assert\Length(max="255") */ private $ruc; /** * @ORM\Column(type="string", nullable=true) * @Assert\Length(max="255") */ private $doc_type; /** * @ORM\Column(type="string", nullable=true) * @Assert\Length(max="255") */ private $doc_num; /** * @ORM\Column(type="string") * @Assert\Length(max="255") * @Assert\NotBlank() */ private $promo; /** * FormPromo constructor. */ public function __construct() { parent::__construct(); } public function getName(): ?string { return $this->name; } public function setName(string $name): self { $this->name = $name; return $this; } public function getLastname(): ?string { return $this->lastname; } public function setLastname(string $lastname): self { $this->lastname = $lastname; return $this; } public function getEmail(): ?string { return $this->email; } public function setEmail(string $email): self { $this->email = $email; return $this; } public function getPhone(): ?string { return $this->phone; } public function setPhone(string $phone): self { $this->phone = $phone; return $this; } public function getDepartament(): ?string { return $this->departament; } public function setDepartament(string $departament): self { $this->departament = $departament; return $this; } public function getFactory(): ?string { return $this->factory; } public function setFactory(string $factory): self { $this->factory = $factory; return $this; } public function getRuc(): ?string { return $this->ruc; } public function setRuc(?string $ruc): self { $this->ruc = $ruc; return $this; } public function getDocType(): ?string { return $this->doc_type; } public function setDocType(?string $doc_type): self { $this->doc_type = $doc_type; return $this; } public function getDocNum(): ?string { return $this->doc_num; } public function setDocNum(?string $doc_num): self { $this->doc_num = $doc_num; return $this; } public function getPromo(): ?string { return $this->promo; } public function setPromo(string $promo): self { $this->promo = $promo; return $this; }}