src/Entity/FormClaim.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\FormClaimRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Validator\Constraints as Assert;
  6. /**
  7.  * @ORM\Entity(repositoryClass=FormClaimRepository::class)
  8.  */
  9. class FormClaim extends BaseForm
  10. {
  11.     /**
  12.      * @ORM\Column(type="string", nullable=true)
  13.      * @Assert\Length(max="255")
  14.      */
  15.     private $code;
  16.     /**
  17.      * @ORM\Column(type="string", nullable=true)
  18.      * @Assert\Length(max="255")
  19.      */
  20.     private $establishment;
  21.     /**
  22.      * @ORM\Column(type="string", nullable=true)
  23.      * @Assert\Length(max="255")
  24.      */
  25.     private $name;
  26.     /**
  27.      * @ORM\Column(type="string", nullable=true)
  28.      * @Assert\Length(max="255")
  29.      */
  30.     private $lastname;
  31.     /**
  32.      * @ORM\Column(type="string", nullable=true)
  33.      * @Assert\Length(max="255")
  34.      */
  35.     private $apellido_materno;
  36.     /**
  37.      * @ORM\Column(type="string", nullable=true)
  38.      * @Assert\Length(max="255")
  39.      */
  40.     private $email;
  41.     /**
  42.      * @ORM\Column(type="string", nullable=true)
  43.      * @Assert\Length(max="255")
  44.      */
  45.     private $phone;
  46.     /**
  47.      * @ORM\Column(type="string", nullable=true)
  48.      * @Assert\Length(max="255")
  49.      */
  50.     private $document_type;
  51.     /**
  52.      * @ORM\Column(type="string", nullable=true)
  53.      * @Assert\Length(max="255")
  54.      */
  55.     private $document_number;
  56.     /**
  57.      * @ORM\Column(type="string", nullable=true)
  58.      * @Assert\Length(max="255")
  59.      */
  60.     private $department;
  61.     /**
  62.      * @ORM\Column(type="string", nullable=true)
  63.      * @Assert\Length(max="255")
  64.      */
  65.     private $province;
  66.     /**
  67.      * @ORM\Column(type="string", nullable=true)
  68.      * @Assert\Length(max="255")
  69.      */
  70.     private $district;
  71.     /**
  72.      * @ORM\Column(type="string", nullable=true)
  73.      * @Assert\Length(max="255")
  74.      */
  75.     private $address;
  76.     /**
  77.      * @ORM\Column(type="boolean", options={"default": false})
  78.      */
  79.     private $younger;
  80.     /**
  81.      * @ORM\Column(type="string", nullable=true)
  82.      * @Assert\Length(max="255")
  83.      */
  84.     private $tutor_name;
  85.     /**
  86.      * @ORM\Column(type="string", nullable=true)
  87.      * @Assert\Length(max="255")
  88.      */
  89.     private $tutor_last_name;
  90.     /**
  91.      * @ORM\Column(type="string", nullable=true)
  92.      * @Assert\Length(max="255")
  93.      */
  94.     private $tutor_apellido_materno;
  95.     /**
  96.      * @ORM\Column(type="string", nullable=true)
  97.      * @Assert\Length(max="255")
  98.      */
  99.     private $tutor_email;
  100.     /**
  101.      * @ORM\Column(type="string", nullable=true)
  102.      * @Assert\Length(max="255")
  103.      */
  104.     private $tutor_phone;
  105.     /**
  106.      * @ORM\Column(type="string", nullable=true)
  107.      * @Assert\Length(max="255")
  108.      */
  109.     private $tutor_document_type;
  110.     /**
  111.      * @ORM\Column(type="string", nullable=true)
  112.      * @Assert\Length(max="255")
  113.      */
  114.     private $tutor_document_number;
  115.     /**
  116.      * @ORM\Column(type="string", nullable=true)
  117.      * @Assert\Length(max="255")
  118.      */
  119.     private $good;
  120.     /**
  121.      * @ORM\Column(type="string", nullable=true)
  122.      * @Assert\Length(max="255")
  123.      */
  124.     private $amount;
  125.     /**
  126.      * @ORM\Column(type="string", nullable=true)
  127.      * @Assert\Length(max="255")
  128.      */
  129.     private $currency;
  130.     /**
  131.      * @ORM\Column(type="text", nullable=true)
  132.      */
  133.     private $description;
  134.     /**
  135.      * @ORM\Column(type="string", nullable=true)
  136.      * @Assert\Length(max="255")
  137.      */
  138.     private $type;
  139.     /**
  140.      * @ORM\Column(type="text", nullable=true)
  141.      */
  142.     private $detail;
  143.     /**
  144.      * @ORM\Column(type="text", nullable=true)
  145.      */
  146.     private $demand;
  147.     /**
  148.      * @ORM\Column(type="string", nullable=true)
  149.      * @Assert\Length(max="255")
  150.      */
  151.     private $file;
  152.     /**
  153.      * @ORM\Column(type="string", nullable=true)
  154.      * @Assert\Length(max="255")
  155.      */
  156.     private $authorization;
  157.     /**
  158.      * @ORM\Column(type="datetime", nullable=true)
  159.      */
  160.     protected $answer_date;
  161.     /**
  162.      * @ORM\Column(type="boolean", options={"default": false})
  163.      */
  164.     private $saved;
  165.     /**
  166.      * @ORM\Column(type="string", length=64, unique=true, nullable=true)
  167.      */
  168.     private $uniq;
  169.     /**
  170.      * @ORM\Column(type="text", nullable=true)
  171.      */
  172.     private $firma;
  173.     /**
  174.      * @ORM\Column(type="string", nullable=true)
  175.      */
  176.     private $pdfPath;
  177.     /**
  178.      * FormClaim constructor.
  179.      */
  180.     public function __construct()
  181.     {
  182.         parent::__construct();
  183.         $this->younger false;
  184.         $this->saved false;
  185.         $this->answer_date = new \DateTime();
  186.     }
  187.     public function getCode(): ?string
  188.     {
  189.         return $this->code;
  190.     }
  191.     public function setCode(?string $code): self
  192.     {
  193.         $this->code $code;
  194.         return $this;
  195.     }
  196.     public function getEstablishment(): ?string
  197.     {
  198.         return $this->establishment;
  199.     }
  200.     public function setEstablishment(?string $establishment): self
  201.     {
  202.         $this->establishment $establishment;
  203.         return $this;
  204.     }
  205.     public function getName(): ?string
  206.     {
  207.         return $this->name;
  208.     }
  209.     public function setName(?string $name): self
  210.     {
  211.         $this->name $name;
  212.         return $this;
  213.     }
  214.     public function getLastname(): ?string
  215.     {
  216.         return $this->lastname;
  217.     }
  218.     public function setLastname(?string $lastname): self
  219.     {
  220.         $this->lastname $lastname;
  221.         return $this;
  222.     }
  223.     public function getApellidoMaterno(): ?string
  224.     {
  225.         return $this->apellido_materno;
  226.     }
  227.     public function setApellidoMaterno(?string $apellido_materno): self
  228.     {
  229.         $this->apellido_materno $apellido_materno;
  230.         return $this;
  231.     }
  232.     public function getEmail(): ?string
  233.     {
  234.         return $this->email;
  235.     }
  236.     public function setEmail(?string $email): self
  237.     {
  238.         $this->email $email;
  239.         return $this;
  240.     }
  241.     public function getPhone(): ?string
  242.     {
  243.         return $this->phone;
  244.     }
  245.     public function setPhone(?string $phone): self
  246.     {
  247.         $this->phone $phone;
  248.         return $this;
  249.     }
  250.     public function getDocumentType(): ?string
  251.     {
  252.         return $this->document_type;
  253.     }
  254.     public function setDocumentType(?string $document_type): self
  255.     {
  256.         $this->document_type $document_type;
  257.         return $this;
  258.     }
  259.     public function getDocumentNumber(): ?string
  260.     {
  261.         return $this->document_number;
  262.     }
  263.     public function setDocumentNumber(?string $document_number): self
  264.     {
  265.         $this->document_number $document_number;
  266.         return $this;
  267.     }
  268.     public function getDepartment(): ?string
  269.     {
  270.         return $this->department;
  271.     }
  272.     public function setDepartment(?string $department): self
  273.     {
  274.         $this->department $department;
  275.         return $this;
  276.     }
  277.     public function getProvince(): ?string
  278.     {
  279.         return $this->province;
  280.     }
  281.     public function setProvince(?string $province): self
  282.     {
  283.         $this->province $province;
  284.         return $this;
  285.     }
  286.     public function getDistrict(): ?string
  287.     {
  288.         return $this->district;
  289.     }
  290.     public function setDistrict(?string $district): self
  291.     {
  292.         $this->district $district;
  293.         return $this;
  294.     }
  295.     public function getAddress(): ?string
  296.     {
  297.         return $this->address;
  298.     }
  299.     public function setAddress(?string $address): self
  300.     {
  301.         $this->address $address;
  302.         return $this;
  303.     }
  304.     public function isYounger(): ?bool
  305.     {
  306.         return $this->younger;
  307.     }
  308.     public function setYounger(?bool $younger): self
  309.     {
  310.         $this->younger $younger;
  311.         return $this;
  312.     }
  313.     public function getTutorName(): ?string
  314.     {
  315.         return $this->tutor_name;
  316.     }
  317.     public function setTutorName(?string $tutor_name): self
  318.     {
  319.         $this->tutor_name $tutor_name;
  320.         return $this;
  321.     }
  322.     public function getTutorLastName(): ?string
  323.     {
  324.         return $this->tutor_last_name;
  325.     }
  326.     public function setTutorLastName(?string $tutor_last_name): self
  327.     {
  328.         $this->tutor_last_name $tutor_last_name;
  329.         return $this;
  330.     }
  331.     public function getTutorApellidoMaterno(): ?string
  332.     {
  333.         return $this->tutor_apellido_materno;
  334.     }
  335.     public function setTutorApellidoMaterno(?string $tutor_apellido_materno): self
  336.     {
  337.         $this->tutor_apellido_materno $tutor_apellido_materno;
  338.         return $this;
  339.     }
  340.     public function getTutorEmail(): ?string
  341.     {
  342.         return $this->tutor_email;
  343.     }
  344.     public function setTutorEmail(?string $tutor_email): self
  345.     {
  346.         $this->tutor_email $tutor_email;
  347.         return $this;
  348.     }
  349.     public function getTutorPhone(): ?string
  350.     {
  351.         return $this->tutor_phone;
  352.     }
  353.     public function setTutorPhone(?string $tutor_phone): self
  354.     {
  355.         $this->tutor_phone $tutor_phone;
  356.         return $this;
  357.     }
  358.     public function getTutorDocumentType(): ?string
  359.     {
  360.         return $this->tutor_document_type;
  361.     }
  362.     public function setTutorDocumentType(?string $tutor_document_type): self
  363.     {
  364.         $this->tutor_document_type $tutor_document_type;
  365.         return $this;
  366.     }
  367.     public function getTutorDocumentNumber(): ?string
  368.     {
  369.         return $this->tutor_document_number;
  370.     }
  371.     public function setTutorDocumentNumber(?string $tutor_document_number): self
  372.     {
  373.         $this->tutor_document_number $tutor_document_number;
  374.         return $this;
  375.     }
  376.     public function getGood(): ?string
  377.     {
  378.         return $this->good;
  379.     }
  380.     public function setGood(?string $good): self
  381.     {
  382.         $this->good $good;
  383.         return $this;
  384.     }
  385.     public function getAmount(): ?string
  386.     {
  387.         return $this->amount;
  388.     }
  389.     public function setAmount(?string $amount): self
  390.     {
  391.         $this->amount $amount;
  392.         return $this;
  393.     }
  394.     public function getCurrency(): ?string
  395.     {
  396.         return $this->currency;
  397.     }
  398.     public function setCurrency(?string $currency): self
  399.     {
  400.         $this->currency $currency;
  401.         return $this;
  402.     }
  403.     public function getDescription(): ?string
  404.     {
  405.         return $this->description;
  406.     }
  407.     public function setDescription(?string $description): self
  408.     {
  409.         $this->description $description;
  410.         return $this;
  411.     }
  412.     public function getType(): ?string
  413.     {
  414.         return $this->type;
  415.     }
  416.     public function setType(?string $type): self
  417.     {
  418.         $this->type $type;
  419.         return $this;
  420.     }
  421.     public function getDetail(): ?string
  422.     {
  423.         return $this->detail;
  424.     }
  425.     public function setDetail(?string $detail): self
  426.     {
  427.         $this->detail $detail;
  428.         return $this;
  429.     }
  430.     public function getDemand(): ?string
  431.     {
  432.         return $this->demand;
  433.     }
  434.     public function setDemand(?string $demand): self
  435.     {
  436.         $this->demand $demand;
  437.         return $this;
  438.     }
  439.     public function getFile(): ?string
  440.     {
  441.         return $this->file;
  442.     }
  443.     public function setFile(?string $file): self
  444.     {
  445.         $this->file $file;
  446.         return $this;
  447.     }
  448.     public function getAuthorization(): ?string
  449.     {
  450.         return $this->authorization;
  451.     }
  452.     public function setAuthorization(?string $authorization): self
  453.     {
  454.         $this->authorization $authorization;
  455.         return $this;
  456.     }
  457.     public function getAnswerDate(): ?\DateTimeInterface
  458.     {
  459.         return $this->answer_date;
  460.     }
  461.     public function setAnswerDate(?\DateTimeInterface $answer_date): self
  462.     {
  463.         $this->answer_date $answer_date;
  464.         return $this;
  465.     }
  466.     public function isSaved(): ?bool
  467.     {
  468.         return $this->saved;
  469.     }
  470.     public function setSaved(bool $saved): self
  471.     {
  472.         $this->saved $saved;
  473.         return $this;
  474.     }
  475.     public function getUniq(): ?string
  476.     {
  477.         return $this->uniq;
  478.     }
  479.     public function setUniq(?string $uniq): self
  480.     {
  481.         $this->uniq $uniq;
  482.         return $this;
  483.     }
  484.     public function getFirma(): ?string
  485.     {
  486.         return $this->firma;
  487.     }
  488.     public function setFirma(?string $firma): self
  489.     {
  490.         $this->firma $firma;
  491.         return $this;
  492.     }
  493. }