src/Entity/FormMachine.php line 12

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