src/Entity/FormPromo.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\FormPromoRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Validator\Constraints as Assert;
  6. /**
  7.  * @ORM\Entity(repositoryClass=FormPromoRepository::class)
  8.  */
  9. class FormPromo extends BaseForm
  10. {
  11.     /**
  12.      * @ORM\Column(type="string")
  13.      * @Assert\Length(max="255")
  14.      * @Assert\NotBlank()
  15.      */
  16.     private $name;
  17.     /**
  18.      * @ORM\Column(type="string")
  19.      * @Assert\Length(max="255")
  20.      * @Assert\NotBlank()
  21.      */
  22.     private $lastname;
  23.     /**
  24.      * @ORM\Column(type="string")
  25.      * @Assert\Length(max="255")
  26.      * @Assert\NotBlank()
  27.      */
  28.     private $email;
  29.     /**
  30.      * @ORM\Column(type="string")
  31.      * @Assert\Length(max="255")
  32.      * @Assert\NotBlank()
  33.      */
  34.     private $phone;
  35.     /**
  36.      * @ORM\Column(type="string")
  37.      * @Assert\Length(max="255")
  38.      * @Assert\NotBlank()
  39.      */
  40.     private $departament;
  41.     /**
  42.      * @ORM\Column(type="string", nullable=true)
  43.      * @Assert\Length(max="255")
  44.      */
  45.     private $factory;
  46.     /**
  47.      * @ORM\Column(type="string", nullable=true)
  48.      * @Assert\Length(max="255")
  49.      */
  50.     private $ruc;
  51.     /**
  52.      * @ORM\Column(type="string", nullable=true)
  53.      * @Assert\Length(max="255")
  54.      */
  55.     private $doc_type;
  56.     /**
  57.      * @ORM\Column(type="string", nullable=true)
  58.      * @Assert\Length(max="255")
  59.      */
  60.     private $doc_num;
  61.     /**
  62.      * @ORM\Column(type="string")
  63.      * @Assert\Length(max="255")
  64.      * @Assert\NotBlank()
  65.      */
  66.     private $promo;
  67.     /**
  68.      * FormPromo constructor.
  69.      */
  70.     public function __construct()
  71.     {
  72.         parent::__construct();
  73.     }
  74.     public function getName(): ?string
  75.     {
  76.         return $this->name;
  77.     }
  78.     public function setName(string $name): self
  79.     {
  80.         $this->name $name;
  81.         return $this;
  82.     }
  83.     public function getLastname(): ?string
  84.     {
  85.         return $this->lastname;
  86.     }
  87.     public function setLastname(string $lastname): self
  88.     {
  89.         $this->lastname $lastname;
  90.         return $this;
  91.     }
  92.     public function getEmail(): ?string
  93.     {
  94.         return $this->email;
  95.     }
  96.     public function setEmail(string $email): self
  97.     {
  98.         $this->email $email;
  99.         return $this;
  100.     }
  101.     public function getPhone(): ?string
  102.     {
  103.         return $this->phone;
  104.     }
  105.     public function setPhone(string $phone): self
  106.     {
  107.         $this->phone $phone;
  108.         return $this;
  109.     }
  110.     public function getDepartament(): ?string
  111.     {
  112.         return $this->departament;
  113.     }
  114.     public function setDepartament(string $departament): self
  115.     {
  116.         $this->departament $departament;
  117.         return $this;
  118.     }
  119.     public function getFactory(): ?string
  120.     {
  121.         return $this->factory;
  122.     }
  123.     public function setFactory(string $factory): self
  124.     {
  125.         $this->factory $factory;
  126.         return $this;
  127.     }
  128.     public function getRuc(): ?string
  129.     {
  130.         return $this->ruc;
  131.     }
  132.     public function setRuc(?string $ruc): self
  133.     {
  134.         $this->ruc $ruc;
  135.         return $this;
  136.     }
  137.     public function getDocType(): ?string
  138.     {
  139.         return $this->doc_type;
  140.     }
  141.     public function setDocType(?string $doc_type): self
  142.     {
  143.         $this->doc_type $doc_type;
  144.         return $this;
  145.     }
  146.     public function getDocNum(): ?string
  147.     {
  148.         return $this->doc_num;
  149.     }
  150.     public function setDocNum(?string $doc_num): self
  151.     {
  152.         $this->doc_num $doc_num;
  153.         return $this;
  154.     }
  155.     public function getPromo(): ?string
  156.     {
  157.         return $this->promo;
  158.     }
  159.     public function setPromo(string $promo): self
  160.     {
  161.         $this->promo $promo;
  162.         return $this;
  163.     }
  164. }