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 $email;
  36.     /**
  37.      * @ORM\Column(type="string", nullable=true)
  38.      * @Assert\Length(max="255")
  39.      */
  40.     private $phone;
  41.     /**
  42.      * @ORM\Column(type="string", nullable=true)
  43.      * @Assert\Length(max="255")
  44.      */
  45.     private $document_type;
  46.     /**
  47.      * @ORM\Column(type="string", nullable=true)
  48.      * @Assert\Length(max="255")
  49.      */
  50.     private $document_number;
  51.     /**
  52.      * @ORM\Column(type="string", nullable=true)
  53.      * @Assert\Length(max="255")
  54.      */
  55.     private $department;
  56.     /**
  57.      * @ORM\Column(type="string", nullable=true)
  58.      * @Assert\Length(max="255")
  59.      */
  60.     private $province;
  61.     /**
  62.      * @ORM\Column(type="string", nullable=true)
  63.      * @Assert\Length(max="255")
  64.      */
  65.     private $district;
  66.     /**
  67.      * @ORM\Column(type="string", nullable=true)
  68.      * @Assert\Length(max="255")
  69.      */
  70.     private $address;
  71.     /**
  72.      * @ORM\Column(type="boolean", nullable=true, options={"default": false})
  73.      */
  74.     private $younger;
  75.     /**
  76.      * @ORM\Column(type="string", nullable=true)
  77.      * @Assert\Length(max="255")
  78.      */
  79.     private $tutor_name;
  80.     /**
  81.      * @ORM\Column(type="string", nullable=true)
  82.      * @Assert\Length(max="255")
  83.      */
  84.     private $tutor_last_name;
  85.     /**
  86.      * @ORM\Column(type="string", nullable=true)
  87.      * @Assert\Length(max="255")
  88.      */
  89.     private $tutor_email;
  90.     /**
  91.      * @ORM\Column(type="string", nullable=true)
  92.      * @Assert\Length(max="255")
  93.      */
  94.     private $tutor_phone;
  95.     /**
  96.      * @ORM\Column(type="string", nullable=true)
  97.      * @Assert\Length(max="255")
  98.      */
  99.     private $tutor_document_type;
  100.     /**
  101.      * @ORM\Column(type="string", nullable=true)
  102.      * @Assert\Length(max="255")
  103.      */
  104.     private $tutor_document_number;
  105.     /**
  106.      * @ORM\Column(type="string", nullable=true)
  107.      * @Assert\Length(max="255")
  108.      */
  109.     private $good;
  110.     /**
  111.      * @ORM\Column(type="string", nullable=true)
  112.      * @Assert\Length(max="255")
  113.      */
  114.     private $amount;
  115.     /**
  116.      * @ORM\Column(type="text", nullable=true)
  117.      */
  118.     private $description;
  119.     /**
  120.      * @ORM\Column(type="string", nullable=true)
  121.      * @Assert\Length(max="255")
  122.      */
  123.     private $type;
  124.     /**
  125.      * @ORM\Column(type="text", nullable=true)
  126.      */
  127.     private $detail;
  128.     /**
  129.      * @ORM\Column(type="text", nullable=true)
  130.      */
  131.     private $demand;
  132.     /**
  133.      * @ORM\Column(type="string", nullable=true)
  134.      * @Assert\Length(max="255")
  135.      */
  136.     private $file;
  137.     /**
  138.      * @ORM\Column(type="string", nullable=false)
  139.      * @Assert\Length(max="255")
  140.      */
  141.     private $authorization;
  142.     /**
  143.      * @ORM\Column(type="datetime", nullable=true)
  144.      */
  145.     protected $answer_date;
  146.     /**
  147.      * @ORM\Column(type="boolean", options={"default": false})
  148.      */
  149.     private $saved;
  150.     /**
  151.      * FormClaim constructor.
  152.      */
  153.     public function __construct()
  154.     {
  155.         parent::__construct();
  156.         $this->younger false;
  157.         $this->saved false;
  158.         $this->answer_date = new \DateTime();
  159.     }
  160.     public function getCode(): ?string
  161.     {
  162.         return $this->code;
  163.     }
  164.     public function setCode(?string $code): self
  165.     {
  166.         $this->code $code;
  167.         return $this;
  168.     }
  169.     public function getEstablishment(): ?string
  170.     {
  171.         return $this->establishment;
  172.     }
  173.     public function setEstablishment(?string $establishment): self
  174.     {
  175.         $this->establishment $establishment;
  176.         return $this;
  177.     }
  178.     public function getName(): ?string
  179.     {
  180.         return $this->name;
  181.     }
  182.     public function setName(?string $name): self
  183.     {
  184.         $this->name $name;
  185.         return $this;
  186.     }
  187.     public function getLastname(): ?string
  188.     {
  189.         return $this->lastname;
  190.     }
  191.     public function setLastname(?string $lastname): self
  192.     {
  193.         $this->lastname $lastname;
  194.         return $this;
  195.     }
  196.     public function getEmail(): ?string
  197.     {
  198.         return $this->email;
  199.     }
  200.     public function setEmail(?string $email): self
  201.     {
  202.         $this->email $email;
  203.         return $this;
  204.     }
  205.     public function getPhone(): ?string
  206.     {
  207.         return $this->phone;
  208.     }
  209.     public function setPhone(?string $phone): self
  210.     {
  211.         $this->phone $phone;
  212.         return $this;
  213.     }
  214.     public function getDocumentType(): ?string
  215.     {
  216.         return $this->document_type;
  217.     }
  218.     public function setDocumentType(?string $document_type): self
  219.     {
  220.         $this->document_type $document_type;
  221.         return $this;
  222.     }
  223.     public function getDocumentNumber(): ?string
  224.     {
  225.         return $this->document_number;
  226.     }
  227.     public function setDocumentNumber(?string $document_number): self
  228.     {
  229.         $this->document_number $document_number;
  230.         return $this;
  231.     }
  232.     public function getDepartment(): ?string
  233.     {
  234.         return $this->department;
  235.     }
  236.     public function setDepartment(?string $department): self
  237.     {
  238.         $this->department $department;
  239.         return $this;
  240.     }
  241.     public function getProvince(): ?string
  242.     {
  243.         return $this->province;
  244.     }
  245.     public function setProvince(?string $province): self
  246.     {
  247.         $this->province $province;
  248.         return $this;
  249.     }
  250.     public function getDistrict(): ?string
  251.     {
  252.         return $this->district;
  253.     }
  254.     public function setDistrict(?string $district): self
  255.     {
  256.         $this->district $district;
  257.         return $this;
  258.     }
  259.     public function getAddress(): ?string
  260.     {
  261.         return $this->address;
  262.     }
  263.     public function setAddress(?string $address): self
  264.     {
  265.         $this->address $address;
  266.         return $this;
  267.     }
  268.     public function isYounger(): ?bool
  269.     {
  270.         return $this->younger;
  271.     }
  272.     public function setYounger(?bool $younger): self
  273.     {
  274.         $this->younger $younger;
  275.         return $this;
  276.     }
  277.     public function getTutorName(): ?string
  278.     {
  279.         return $this->tutor_name;
  280.     }
  281.     public function setTutorName(?string $tutor_name): self
  282.     {
  283.         $this->tutor_name $tutor_name;
  284.         return $this;
  285.     }
  286.     public function getTutorLastName(): ?string
  287.     {
  288.         return $this->tutor_last_name;
  289.     }
  290.     public function setTutorLastName(?string $tutor_last_name): self
  291.     {
  292.         $this->tutor_last_name $tutor_last_name;
  293.         return $this;
  294.     }
  295.     public function getTutorEmail(): ?string
  296.     {
  297.         return $this->tutor_email;
  298.     }
  299.     public function setTutorEmail(?string $tutor_email): self
  300.     {
  301.         $this->tutor_email $tutor_email;
  302.         return $this;
  303.     }
  304.     public function getTutorPhone(): ?string
  305.     {
  306.         return $this->tutor_phone;
  307.     }
  308.     public function setTutorPhone(?string $tutor_phone): self
  309.     {
  310.         $this->tutor_phone $tutor_phone;
  311.         return $this;
  312.     }
  313.     public function getTutorDocumentType(): ?string
  314.     {
  315.         return $this->tutor_document_type;
  316.     }
  317.     public function setTutorDocumentType(?string $tutor_document_type): self
  318.     {
  319.         $this->tutor_document_type $tutor_document_type;
  320.         return $this;
  321.     }
  322.     public function getTutorDocumentNumber(): ?string
  323.     {
  324.         return $this->tutor_document_number;
  325.     }
  326.     public function setTutorDocumentNumber(?string $tutor_document_number): self
  327.     {
  328.         $this->tutor_document_number $tutor_document_number;
  329.         return $this;
  330.     }
  331.     public function getGood(): ?string
  332.     {
  333.         return $this->good;
  334.     }
  335.     public function setGood(?string $good): self
  336.     {
  337.         $this->good $good;
  338.         return $this;
  339.     }
  340.     public function getAmount(): ?string
  341.     {
  342.         return $this->amount;
  343.     }
  344.     public function setAmount(?string $amount): self
  345.     {
  346.         $this->amount $amount;
  347.         return $this;
  348.     }
  349.     public function getDescription(): ?string
  350.     {
  351.         return $this->description;
  352.     }
  353.     public function setDescription(?string $description): self
  354.     {
  355.         $this->description $description;
  356.         return $this;
  357.     }
  358.     public function getType(): ?string
  359.     {
  360.         return $this->type;
  361.     }
  362.     public function setType(?string $type): self
  363.     {
  364.         $this->type $type;
  365.         return $this;
  366.     }
  367.     public function getDetail(): ?string
  368.     {
  369.         return $this->detail;
  370.     }
  371.     public function setDetail(?string $detail): self
  372.     {
  373.         $this->detail $detail;
  374.         return $this;
  375.     }
  376.     public function getDemand(): ?string
  377.     {
  378.         return $this->demand;
  379.     }
  380.     public function setDemand(?string $demand): self
  381.     {
  382.         $this->demand $demand;
  383.         return $this;
  384.     }
  385.     public function getFile(): ?string
  386.     {
  387.         return $this->file;
  388.     }
  389.     public function setFile(?string $file): self
  390.     {
  391.         $this->file $file;
  392.         return $this;
  393.     }
  394.     public function getAuthorization(): ?string
  395.     {
  396.         return $this->authorization;
  397.     }
  398.     public function setAuthorization(string $authorization): self
  399.     {
  400.         $this->authorization $authorization;
  401.         return $this;
  402.     }
  403.     public function getAnswerDate(): ?\DateTimeInterface
  404.     {
  405.         return $this->answer_date;
  406.     }
  407.     public function setAnswerDate(?\DateTimeInterface $answer_date): self
  408.     {
  409.         $this->answer_date $answer_date;
  410.         return $this;
  411.     }
  412.     public function isSaved(): ?bool
  413.     {
  414.         return $this->saved;
  415.     }
  416.     public function setSaved(bool $saved): self
  417.     {
  418.         $this->saved $saved;
  419.         return $this;
  420.     }
  421. }