<?php
namespace App\Entity;
use AdminBundle\CRM\ApiLead;
use App\Repository\FormQuoteRepository;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
/**
* @ORM\Entity(repositoryClass=FormQuoteRepository::class)
*/
class FormQuote extends BaseForm
{
/**
* @ORM\Column(type="string", nullable=true)
* @Assert\Length(max="255")
*/
private $type_machine;
/**
* @ORM\Column(type="string", nullable=true)
* @Assert\Length(max="255")
*/
private $type_model;
/**
* @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", nullable=true)
* @Assert\Length(max="255")
* @Assert\NotBlank()
*/
private $origin;
/**
* @ORM\Column(type="text", nullable=true)
* @Assert\Length(max="500")
*/
private $comment;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $is_person;
/**
* FormQuote constructor.
*/
public function __construct()
{
parent::__construct();
}
public function getTypeMachine(): ?string
{
return $this->type_machine;
}
public function setTypeMachine(string $type_machine): self
{
$this->type_machine = $type_machine;
return $this;
}
public function getTypeModel(): ?string
{
return $this->type_model;
}
public function setTypeModel(string $type_model): self
{
$this->type_model = $type_model;
return $this;
}
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 getComment(): ?string
{
return $this->comment;
}
public function setComment(?string $comment): self
{
$this->comment = $comment;
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 getOrigin(): ?string
{
return $this->origin;
}
public function setOrigin(?string $origin): self
{
$this->origin = $origin;
return $this;
}
public function getIsPerson(): ?bool
{
return $this->is_person;
}
public function setIsPerson(?bool $is_person): self
{
$this->is_person = $is_person;
return $this;
}
}