src/Entity/FormQuote.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use AdminBundle\CRM\ApiLead;
  4. use App\Repository\FormQuoteRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Symfony\Component\Validator\Constraints as Assert;
  7. /**
  8.  * @ORM\Entity(repositoryClass=FormQuoteRepository::class)
  9.  */
  10. class FormQuote extends BaseForm
  11. {
  12.     /**
  13.      * @ORM\Column(type="string", nullable=true)
  14.      * @Assert\Length(max="255")
  15.      */
  16.     private $type_machine;
  17.     /**
  18.      * @ORM\Column(type="string", nullable=true)
  19.      * @Assert\Length(max="255")
  20.      */
  21.     private $type_model;
  22.     /**
  23.      * @ORM\Column(type="string")
  24.      * @Assert\Length(max="255")
  25.      * @Assert\NotBlank()
  26.      */
  27.     private $name;
  28.     /**
  29.      * @ORM\Column(type="string")
  30.      * @Assert\Length(max="255")
  31.      * @Assert\NotBlank()
  32.      */
  33.     private $lastname;
  34.     /**
  35.      * @ORM\Column(type="string")
  36.      * @Assert\Length(max="255")
  37.      * @Assert\NotBlank()
  38.      */
  39.     private $email;
  40.     /**
  41.      * @ORM\Column(type="string")
  42.      * @Assert\Length(max="255")
  43.      * @Assert\NotBlank()
  44.      */
  45.     private $phone;
  46.     /**
  47.      * @ORM\Column(type="string")
  48.      * @Assert\Length(max="255")
  49.      * @Assert\NotBlank()
  50.      */
  51.     private $departament;
  52.     /**
  53.      * @ORM\Column(type="string", nullable=true)
  54.      * @Assert\Length(max="255")
  55.      */
  56.     private $factory;
  57.     /**
  58.      * @ORM\Column(type="string", nullable=true)
  59.      * @Assert\Length(max="255")
  60.      */
  61.     private $ruc;
  62.     /**
  63.      * @ORM\Column(type="string", nullable=true)
  64.      * @Assert\Length(max="255")
  65.      */
  66.     private $doc_type;
  67.     /**
  68.      * @ORM\Column(type="string", nullable=true)
  69.      * @Assert\Length(max="255")
  70.      */
  71.     private $doc_num;
  72.     /**
  73.      * @ORM\Column(type="string", nullable=true)
  74.      * @Assert\Length(max="255")
  75.      * @Assert\NotBlank()
  76.      */
  77.     private $origin;
  78.     /**
  79.      * @ORM\Column(type="text", nullable=true)
  80.      * @Assert\Length(max="500")
  81.      */
  82.     private $comment;
  83.     /**
  84.      * @ORM\Column(type="boolean", nullable=true)
  85.      */
  86.     private $is_person;
  87.     /**
  88.      * FormQuote constructor.
  89.      */
  90.     public function __construct()
  91.     {
  92.         parent::__construct();
  93.     }
  94.     public function getTypeMachine(): ?string
  95.     {
  96.         return $this->type_machine;
  97.     }
  98.     public function setTypeMachine(string $type_machine): self
  99.     {
  100.         $this->type_machine $type_machine;
  101.         return $this;
  102.     }
  103.     public function getTypeModel(): ?string
  104.     {
  105.         return $this->type_model;
  106.     }
  107.     public function setTypeModel(string $type_model): self
  108.     {
  109.         $this->type_model $type_model;
  110.         return $this;
  111.     }
  112.     public function getName(): ?string
  113.     {
  114.         return $this->name;
  115.     }
  116.     public function setName(string $name): self
  117.     {
  118.         $this->name $name;
  119.         return $this;
  120.     }
  121.     public function getLastname(): ?string
  122.     {
  123.         return $this->lastname;
  124.     }
  125.     public function setLastname(string $lastname): self
  126.     {
  127.         $this->lastname $lastname;
  128.         return $this;
  129.     }
  130.     public function getEmail(): ?string
  131.     {
  132.         return $this->email;
  133.     }
  134.     public function setEmail(string $email): self
  135.     {
  136.         $this->email $email;
  137.         return $this;
  138.     }
  139.     public function getPhone(): ?string
  140.     {
  141.         return $this->phone;
  142.     }
  143.     public function setPhone(string $phone): self
  144.     {
  145.         $this->phone $phone;
  146.         return $this;
  147.     }
  148.     public function getDepartament(): ?string
  149.     {
  150.         return $this->departament;
  151.     }
  152.     public function setDepartament(string $departament): self
  153.     {
  154.         $this->departament $departament;
  155.         return $this;
  156.     }
  157.     public function getFactory(): ?string
  158.     {
  159.         return $this->factory;
  160.     }
  161.     public function setFactory(string $factory): self
  162.     {
  163.         $this->factory $factory;
  164.         return $this;
  165.     }
  166.     public function getRuc(): ?string
  167.     {
  168.         return $this->ruc;
  169.     }
  170.     public function setRuc(string $ruc): self
  171.     {
  172.         $this->ruc $ruc;
  173.         return $this;
  174.     }
  175.     public function getComment(): ?string
  176.     {
  177.         return $this->comment;
  178.     }
  179.     public function setComment(?string $comment): self
  180.     {
  181.         $this->comment $comment;
  182.         return $this;
  183.     }
  184.     public function getDocType(): ?string
  185.     {
  186.         return $this->doc_type;
  187.     }
  188.     public function setDocType(?string $doc_type): self
  189.     {
  190.         $this->doc_type $doc_type;
  191.         return $this;
  192.     }
  193.     public function getDocNum(): ?string
  194.     {
  195.         return $this->doc_num;
  196.     }
  197.     public function setDocNum(?string $doc_num): self
  198.     {
  199.         $this->doc_num $doc_num;
  200.         return $this;
  201.     }
  202.     public function getOrigin(): ?string
  203.     {
  204.         return $this->origin;
  205.     }
  206.     public function setOrigin(?string $origin): self
  207.     {
  208.         $this->origin $origin;
  209.         return $this;
  210.     }
  211.     public function getIsPerson(): ?bool
  212.     {
  213.         return $this->is_person;
  214.     }
  215.     public function setIsPerson(?bool $is_person): self
  216.     {
  217.         $this->is_person $is_person;
  218.         return $this;
  219.     }
  220. }