src/Entity/FormTruck.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\FormTruckRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Validator\Constraints as Assert;
  6. /**
  7.  * @ORM\Entity(repositoryClass=FormTruckRepository::class)
  8.  */
  9. class FormTruck extends BaseForm
  10. {
  11.     /**
  12.      * @ORM\Column(type="string")
  13.      * @Assert\Length(max="255")
  14.      * @Assert\NotBlank()
  15.      */
  16.     private $type_person;
  17.     /**
  18.      * @ORM\Column(type="string")
  19.      * @Assert\Length(max="255")
  20.      * @Assert\NotBlank()
  21.      */
  22.     private $document_type;
  23.     /**
  24.      * @ORM\Column(type="string")
  25.      * @Assert\Length(max="255")
  26.      * @Assert\NotBlank()
  27.      */
  28.     private $document_number;
  29.     /**
  30.      * @ORM\Column(type="string", nullable=true)
  31.      * @Assert\Length(max="255")
  32.      */
  33.     private $company;
  34.     /**
  35.      * @ORM\Column(type="string")
  36.      * @Assert\Length(max="255")
  37.      * @Assert\NotBlank()
  38.      */
  39.     private $name;
  40.     /**
  41.      * @ORM\Column(type="string")
  42.      * @Assert\Length(max="255")
  43.      * @Assert\NotBlank()
  44.      */
  45.     private $lastname;
  46.     /**
  47.      * @ORM\Column(type="string")
  48.      * @Assert\Length(max="255")
  49.      * @Assert\NotBlank()
  50.      */
  51.     private $department;
  52.     /**
  53.      * @ORM\Column(type="string")
  54.      * @Assert\Length(max="255")
  55.      * @Assert\NotBlank()
  56.      */
  57.     private $phone;
  58.     /**
  59.      * @ORM\Column(type="string")
  60.      * @Assert\Length(max="255")
  61.      * @Assert\NotBlank()
  62.      */
  63.     private $email;
  64.     /**
  65.      * @ORM\Column(type="string")
  66.      * @Assert\Length(max="255")
  67.      * @Assert\NotBlank()
  68.      */
  69.     private $model;
  70.     /**
  71.      * FormTruck constructor.
  72.      */
  73.     public function __construct()
  74.     {
  75.         parent::__construct();
  76.     }
  77.     public function getTypePerson(): ?string
  78.     {
  79.         return $this->type_person;
  80.     }
  81.     public function setTypePerson(string $type_person): self
  82.     {
  83.         $this->type_person $type_person;
  84.         return $this;
  85.     }
  86.     public function getDocumentType(): ?string
  87.     {
  88.         return $this->document_type;
  89.     }
  90.     public function setDocumentType(string $document_type): self
  91.     {
  92.         $this->document_type $document_type;
  93.         return $this;
  94.     }
  95.     public function getDocumentNumber(): ?string
  96.     {
  97.         return $this->document_number;
  98.     }
  99.     public function setDocumentNumber(string $document_number): self
  100.     {
  101.         $this->document_number $document_number;
  102.         return $this;
  103.     }
  104.     public function getCompany(): ?string
  105.     {
  106.         return $this->company;
  107.     }
  108.     public function setCompany(?string $company): self
  109.     {
  110.         $this->company $company;
  111.         return $this;
  112.     }
  113.     public function getName(): ?string
  114.     {
  115.         return $this->name;
  116.     }
  117.     public function setName(string $name): self
  118.     {
  119.         $this->name $name;
  120.         return $this;
  121.     }
  122.     public function getLastname(): ?string
  123.     {
  124.         return $this->lastname;
  125.     }
  126.     public function setLastname(string $lastname): self
  127.     {
  128.         $this->lastname $lastname;
  129.         return $this;
  130.     }
  131.     public function getDepartment(): ?string
  132.     {
  133.         return $this->department;
  134.     }
  135.     public function setDepartment(string $department): self
  136.     {
  137.         $this->department $department;
  138.         return $this;
  139.     }
  140.     public function getPhone(): ?string
  141.     {
  142.         return $this->phone;
  143.     }
  144.     public function setPhone(string $phone): self
  145.     {
  146.         $this->phone $phone;
  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 getModel(): ?string
  159.     {
  160.         return $this->model;
  161.     }
  162.     public function setModel(string $model): self
  163.     {
  164.         $this->model $model;
  165.         return $this;
  166.     }
  167. }