src/Entity/FormPromotion.php line 12

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