src/Entity/FormParts.php line 12

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