src/Entity/SupplierDocument.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\SupplierDocumentRepository;
  4. use Gedmo\Timestampable\Traits\TimestampableEntity;
  5. use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
  6. use Symfony\Component\HttpFoundation\File\File;
  7. use Symfony\Component\HttpFoundation\File\UploadedFile;
  8. use Doctrine\ORM\Mapping as ORM;
  9. use Vich\UploaderBundle\Mapping\Annotation as Vich;
  10. #[Vich\Uploadable]
  11. #[UniqueEntity(fields: 'supplier')]
  12. #[ORM\Entity(repositoryClass: SupplierDocumentRepository::class)]
  13. #[ORM\Table(name: '`supplier_document`')]
  14. class SupplierDocument
  15. {
  16. use TimestampableEntity;
  17. #[ORM\Id]
  18. #[ORM\GeneratedValue(strategy:"AUTO")]
  19. #[ORM\Column(type: "integer")]
  20. protected ?int $id = null;
  21. #[ORM\ManyToOne(targetEntity:"App\Entity\Supplier", inversedBy:"documents")]
  22. #[ORM\JoinColumn(name: "supplier_id", referencedColumnName: "id", nullable: false)]
  23. protected $supplier;
  24. #[ORM\Column(type: "string", length: 255, nullable: true)]
  25. protected $pep = null;
  26. #[Vich\UploadableField(mapping: "supplier_documents", fileNameProperty: "pep")]
  27. protected $pepFile;
  28. #[ORM\Column(type: "datetime", nullable: true)]
  29. protected $pepUpdatedAt;
  30. #[ORM\Column(type: "datetime", nullable: true)]
  31. protected $pepValidUntil;
  32. #[ORM\ManyToOne(targetEntity:"App\Entity\User", inversedBy:"supplierdocument")]
  33. protected $pepUpdatedBy;
  34. #[ORM\Column(type: "string", length: 255, nullable: true)]
  35. protected $maya = null;
  36. #[Vich\UploadableField(mapping: "supplier_documents", fileNameProperty: "maya")]
  37. protected $mayaFile;
  38. #[ORM\Column(type: "datetime", nullable: true)]
  39. protected $mayaUpdatedAt;
  40. #[ORM\Column(type: "datetime", nullable: true)]
  41. protected $mayaValidUntil;
  42. #[ORM\ManyToOne(targetEntity:"App\Entity\User", inversedBy:"supplierdocument")]
  43. protected $mayaUpdatedBy;
  44. #[ORM\Column(type: "string", length: 255, nullable: true)]
  45. protected $ley = null;
  46. /**
  47. * @var File
  48. */
  49. #[Vich\UploadableField(mapping: "supplier_documents", fileNameProperty: "ley")]
  50. protected $leyFile;
  51. #[ORM\Column(type: "datetime", nullable: true)]
  52. protected $leyUpdatedAt;
  53. #[ORM\Column(type: "datetime", nullable: true)]
  54. protected $leyValidUntil;
  55. #[ORM\ManyToOne(targetEntity:"App\Entity\User", inversedBy:"supplierdocument")]
  56. protected $leyUpdatedBy;
  57. #[ORM\Column(type: "string", length: 255, nullable: true)]
  58. protected $const = null;
  59. /**
  60. * @var File
  61. */
  62. #[Vich\UploadableField(mapping: "supplier_documents", fileNameProperty: "const")]
  63. protected $constFile;
  64. #[ORM\Column(type: "datetime", nullable: true)]
  65. protected $constUpdatedAt;
  66. #[ORM\Column(type: "datetime", nullable: true)]
  67. protected $constValidUntil;
  68. #[ORM\ManyToOne(targetEntity:"App\Entity\User", inversedBy:"supplierdocument")]
  69. protected $constUpdatedBy;
  70. #[ORM\Column(type: "string", length: 255, nullable: true)]
  71. protected $finanz = null;
  72. /**
  73. * @var File
  74. */
  75. #[Vich\UploadableField(mapping: "supplier_documents", fileNameProperty: "finanz")]
  76. protected $finanzFile;
  77. #[ORM\Column(type: "datetime", nullable: true)]
  78. protected $finanzUpdatedAt;
  79. #[ORM\Column(type: "datetime", nullable: true)]
  80. protected $finanzValidUntil;
  81. #[ORM\ManyToOne(targetEntity:"App\Entity\User", inversedBy:"supplierdocument")]
  82. protected $finanzUpdatedBy;
  83. #[ORM\Column(type: "string", length: 255, nullable: true)]
  84. protected $form29 = null;
  85. /**
  86. * @var File
  87. */
  88. #[Vich\UploadableField(mapping: "supplier_documents", fileNameProperty: "form29")]
  89. protected $form29File;
  90. #[ORM\Column(type: "datetime", nullable: true)]
  91. protected $form29updatedAt;
  92. #[ORM\Column(type: "datetime", nullable: true)]
  93. protected $form29validUntil;
  94. #[ORM\ManyToOne(targetEntity:"App\Entity\User", inversedBy:"supplierdocument")]
  95. protected $form29updatedBy;
  96. #[ORM\Column(type: "string", length: 255, nullable: true)]
  97. protected $form22 = null;
  98. /**
  99. * @var File
  100. */
  101. #[Vich\UploadableField(mapping: "supplier_documents", fileNameProperty: "form22")]
  102. protected $form22File;
  103. #[ORM\Column(type: "datetime", nullable: true)]
  104. protected $form22updatedAt;
  105. #[ORM\Column(type: "datetime", nullable: true)]
  106. protected $form22validUntil;
  107. #[ORM\ManyToOne(targetEntity:"App\Entity\User", inversedBy:"supplierdocument")]
  108. protected $form22updatedBy;
  109. #[ORM\Column(type: "string", length: 255, nullable: true)]
  110. protected $otros = null;
  111. /**
  112. * @var File
  113. */
  114. #[Vich\UploadableField(mapping: "supplier_documents", fileNameProperty: "otros")]
  115. protected $otrosFile;
  116. #[ORM\Column(type: "datetime", nullable: true)]
  117. protected $otrosUpdatedAt;
  118. #[ORM\Column(type: "datetime", nullable: true)]
  119. protected $otrosValidUntil;
  120. #[ORM\ManyToOne(targetEntity:"App\Entity\User", inversedBy:"supplierdocument")]
  121. protected $otrosUpdatedBy;
  122. #[ORM\Column(type: "string", length: 255, nullable: true)]
  123. protected $infoBasica = null;
  124. /**
  125. * @var File
  126. */
  127. #[Vich\UploadableField(mapping: "supplier_documents", fileNameProperty: "infoBasica")]
  128. protected $infoBasicaFile;
  129. #[ORM\Column(type: "datetime", nullable: true)]
  130. protected $infoBasicaUpdatedAt;
  131. #[ORM\Column(type: "datetime", nullable: true)]
  132. protected $infoBasicaValidUntil;
  133. #[ORM\ManyToOne(targetEntity:"App\Entity\User", inversedBy:"supplierdocument")]
  134. protected $infoBasicaUpdatedBy;
  135. #[ORM\Column(type: "string", length: 255, nullable: true)]
  136. protected $mallaDirectores = null;
  137. /**
  138. * @var File
  139. */
  140. #[Vich\UploadableField(mapping: "supplier_documents", fileNameProperty: "mallaDirectores")]
  141. protected $mallaDirectoresFile;
  142. #[ORM\Column(type: "datetime", nullable: true)]
  143. protected $mallaDirectoresUpdatedAt;
  144. #[ORM\Column(type: "datetime", nullable: true)]
  145. protected $mallaDirectoresValidUntil;
  146. #[ORM\ManyToOne(targetEntity:"App\Entity\User", inversedBy:"supplierdocument")]
  147. protected $mallaDirectoresUpdatedBy;
  148. /**
  149. * @return int
  150. */
  151. public function getId()
  152. {
  153. return $this->id;
  154. }
  155. /**
  156. * @return Supplier
  157. */
  158. public function getSupplier()
  159. {
  160. return $this->supplier;
  161. }
  162. /**
  163. * @param mixed $supplier
  164. */
  165. public function setSupplier(Supplier $supplier)
  166. {
  167. if ($this->supplier === $supplier) {
  168. return;
  169. }
  170. $this->supplier = $supplier;
  171. }
  172. /**
  173. * @return string
  174. */
  175. public function getPep()
  176. {
  177. return $this->pep;
  178. }
  179. /**
  180. * @param string $pep
  181. */
  182. public function setPep(string $pep = null)
  183. {
  184. $this->pep = $pep;
  185. }
  186. /**
  187. * @return File
  188. */
  189. public function getPepFile()
  190. {
  191. return $this->pepFile;
  192. }
  193. /**
  194. * @param File $pepFile
  195. */
  196. public function setPepFile(File $pepFile)
  197. {
  198. $this->pepFile = $pepFile;
  199. if ($this->pepFile instanceof UploadedFile) {
  200. $this->pep = $pepFile->getClientOriginalExtension();
  201. $this->pepUpdatedAt = new \DateTime('now');
  202. }
  203. }
  204. /**
  205. * Sets updatedAt.
  206. *
  207. * @param \DateTime $pepUpdatedAt
  208. * @return $this
  209. */
  210. public function setPepUpdatedAt(\DateTime $pepUpdatedAt)
  211. {
  212. $this->pepUpdatedAt = $pepUpdatedAt;
  213. return $this;
  214. }
  215. /**
  216. * Returns updatedAt.
  217. *
  218. * @return mixed
  219. */
  220. public function getPepUpdatedAt()
  221. {
  222. return $this->pepUpdatedAt;
  223. }
  224. /**
  225. * @return string
  226. */
  227. public function getLey()
  228. {
  229. return $this->ley;
  230. }
  231. /**
  232. * @param string $ley
  233. */
  234. public function setLey(string $ley = null)
  235. {
  236. $this->ley = $ley;
  237. }
  238. /**
  239. * @return File
  240. */
  241. public function getLeyFile()
  242. {
  243. return $this->leyFile;
  244. }
  245. /**
  246. * @param File $leyFile
  247. */
  248. public function setLeyFile(File $leyFile)
  249. {
  250. $this->leyFile = $leyFile;
  251. if ($this->leyFile instanceof UploadedFile) {
  252. $this->ley = $leyFile->getClientOriginalExtension();
  253. $this->leyUpdatedAt = new \DateTime('now');
  254. }
  255. }
  256. /**
  257. * Sets updatedAt.
  258. *
  259. * @param \DateTime $leyUpdatedAt
  260. * @return $this
  261. */
  262. public function setLeyUpdatedAt(\DateTime $leyUpdatedAt)
  263. {
  264. $this->leyUpdatedAt = $leyUpdatedAt;
  265. return $this;
  266. }
  267. /**
  268. * Returns updatedAt.
  269. *
  270. * @return mixed
  271. */
  272. public function getLeyUpdatedAt()
  273. {
  274. return $this->leyUpdatedAt;
  275. }
  276. /**
  277. * @return string
  278. */
  279. public function getConst()
  280. {
  281. return $this->const;
  282. }
  283. /**
  284. * @param string $const
  285. */
  286. public function setConst(string $const = null)
  287. {
  288. $this->const = $const;
  289. }
  290. /**
  291. * @return File
  292. */
  293. public function getConstFile()
  294. {
  295. return $this->constFile;
  296. }
  297. /**
  298. * @param File $constFile
  299. */
  300. public function setConstFile(File $constFile)
  301. {
  302. $this->constFile = $constFile;
  303. if ($this->constFile instanceof UploadedFile) {
  304. $this->const = $constFile->getClientOriginalExtension();
  305. $this->constUpdatedAt = new \DateTime('now');
  306. }
  307. }
  308. /**
  309. * Sets updatedAt.
  310. *
  311. * @param \DateTime $constUpdatedAt
  312. * @return $this
  313. */
  314. public function setConstUpdatedAt(\DateTime $constUpdatedAt)
  315. {
  316. $this->constUpdatedAt = $constUpdatedAt;
  317. return $this;
  318. }
  319. /**
  320. * Returns updatedAt.
  321. *
  322. * @return mixed
  323. */
  324. public function getConstUpdatedAt()
  325. {
  326. return $this->constUpdatedAt;
  327. }
  328. /**
  329. * @return string
  330. */
  331. public function getFinanz()
  332. {
  333. return $this->finanz;
  334. }
  335. /**
  336. * @param string $finanz
  337. */
  338. public function setFinanz(string $finanz = null)
  339. {
  340. $this->finanz = $finanz;
  341. }
  342. /**
  343. * @return File
  344. */
  345. public function getFinanzFile()
  346. {
  347. return $this->finanzFile;
  348. }
  349. /**
  350. * @param File $finanzFile
  351. */
  352. public function setFinanzFile(File $finanzFile)
  353. {
  354. $this->finanzFile = $finanzFile;
  355. if ($this->finanzFile instanceof UploadedFile) {
  356. $this->finanz = $finanzFile->getClientOriginalExtension();
  357. $this->finanzUpdatedAt = new \DateTime('now');
  358. }
  359. }
  360. /**
  361. * Sets updatedAt.
  362. *
  363. * @param \DateTime $finanzUpdatedAt
  364. * @return $this
  365. */
  366. public function setFinanzUpdatedAt(\DateTime $finanzUpdatedAt)
  367. {
  368. $this->finanzUpdatedAt = $finanzUpdatedAt;
  369. return $this;
  370. }
  371. /**
  372. * Returns updatedAt.
  373. *
  374. * @return mixed
  375. */
  376. public function getFinanzUpdatedAt()
  377. {
  378. return $this->finanzUpdatedAt;
  379. }
  380. /**
  381. * @return string
  382. */
  383. public function getForm22()
  384. {
  385. return $this->form22;
  386. }
  387. /**
  388. * @param string $form22
  389. */
  390. public function setForm22(string $form22 = null)
  391. {
  392. $this->form22 = $form22;
  393. }
  394. /**
  395. * @return File
  396. */
  397. public function getForm22File()
  398. {
  399. return $this->form22File;
  400. }
  401. /**
  402. * @param File $form22File
  403. */
  404. public function setForm22File(File $form22File)
  405. {
  406. $this->form22File = $form22File;
  407. if ($this->form22File instanceof UploadedFile) {
  408. $this->form22 = $form22File->getClientOriginalExtension();
  409. $this->form22updatedAt = new \DateTime('now');
  410. }
  411. }
  412. /**
  413. * Sets updatedAt.
  414. *
  415. * @param \DateTime $form22UpdatedAt
  416. * @return $this
  417. */
  418. public function setForm22UpdatedAt(\DateTime $form22UpdatedAt)
  419. {
  420. $this->form22updatedAt = $form22UpdatedAt;
  421. return $this;
  422. }
  423. /**
  424. * Returns updatedAt.
  425. *
  426. * @return mixed
  427. */
  428. public function getForm22UpdatedAt()
  429. {
  430. return $this->form22updatedAt;
  431. }
  432. /**
  433. * @return string
  434. */
  435. public function getForm29()
  436. {
  437. return $this->form29;
  438. }
  439. /**
  440. * @param string $form29
  441. */
  442. public function setForm29(string $form29 = null)
  443. {
  444. $this->form29 = $form29;
  445. }
  446. /**
  447. * @return File
  448. */
  449. public function getForm29File()
  450. {
  451. return $this->form29File;
  452. }
  453. /**
  454. * @param File $form29File
  455. */
  456. public function setForm29File(File $form29File)
  457. {
  458. $this->form29File = $form29File;
  459. if ($this->form29File instanceof UploadedFile) {
  460. $this->form29 = $form29File->getClientOriginalExtension();
  461. $this->form29updatedAt = new \DateTime('now');
  462. }
  463. }
  464. /**
  465. * Sets updatedAt.
  466. *
  467. * @param \DateTime $form29UpdatedAt
  468. * @return $this
  469. */
  470. public function setForm29UpdatedAt(\DateTime $form29UpdatedAt)
  471. {
  472. $this->form29updatedAt = $form29UpdatedAt;
  473. return $this;
  474. }
  475. /**
  476. * Returns updatedAt.
  477. *
  478. * @return mixed
  479. */
  480. public function getForm29UpdatedAt()
  481. {
  482. return $this->form29updatedAt;
  483. }
  484. /**
  485. * @return string
  486. */
  487. public function getOtros()
  488. {
  489. return $this->otros;
  490. }
  491. /**
  492. * @param string $otros
  493. */
  494. public function setOtros(string $otros = null)
  495. {
  496. $this->otros = $otros;
  497. }
  498. /**
  499. * @return File
  500. */
  501. public function getOtrosFile()
  502. {
  503. return $this->otrosFile;
  504. }
  505. /**
  506. * @param File $otrosFile
  507. */
  508. public function setOtrosFile(File $otrosFile)
  509. {
  510. $this->otrosFile = $otrosFile;
  511. if ($this->otrosFile instanceof UploadedFile) {
  512. $this->otros = $otrosFile->getClientOriginalExtension();
  513. $this->otrosUpdatedAt = new \DateTime('now');
  514. }
  515. }
  516. /**
  517. * Sets updatedAt.
  518. *
  519. * @param \DateTime $otrosUpdatedAt
  520. * @return $this
  521. */
  522. public function setOtrosUpdatedAt(\DateTime $otrosUpdatedAt)
  523. {
  524. $this->otrosUpdatedAt = $otrosUpdatedAt;
  525. return $this;
  526. }
  527. /**
  528. * Returns updatedAt.
  529. *
  530. * @return mixed
  531. */
  532. public function getOtrosUpdatedAt()
  533. {
  534. return $this->otrosUpdatedAt;
  535. }
  536. /**
  537. * @return User
  538. */
  539. public function getPepUpdatedBy()
  540. {
  541. return $this->pepUpdatedBy;
  542. }
  543. /**
  544. * @param User $pepUpdatedBy
  545. */
  546. public function setPepUpdatedBy(User $pepUpdatedBy): void
  547. {
  548. $this->pepUpdatedBy = $pepUpdatedBy;
  549. }
  550. /**
  551. * @return User
  552. */
  553. public function getLeyUpdatedBy()
  554. {
  555. return $this->leyUpdatedBy;
  556. }
  557. /**
  558. * @param User $leyUpdatedBy
  559. */
  560. public function setLeyUpdatedBy(User $leyUpdatedBy): void
  561. {
  562. $this->leyUpdatedBy = $leyUpdatedBy;
  563. }
  564. /**
  565. * @return User
  566. */
  567. public function getConstUpdatedBy()
  568. {
  569. return $this->constUpdatedBy;
  570. }
  571. /**
  572. * @param User $constUpdatedBy
  573. */
  574. public function setConstUpdatedBy(User $constUpdatedBy): void
  575. {
  576. $this->constUpdatedBy = $constUpdatedBy;
  577. }
  578. /**
  579. * @return User
  580. */
  581. public function getFinanzUpdatedBy()
  582. {
  583. return $this->finanzUpdatedBy;
  584. }
  585. /**
  586. * @param User $finanzUpdatedBy
  587. */
  588. public function setFinanzUpdatedBy(User $finanzUpdatedBy): void
  589. {
  590. $this->finanzUpdatedBy = $finanzUpdatedBy;
  591. }
  592. /**
  593. * @return User
  594. */
  595. public function getForm29UpdatedBy()
  596. {
  597. return $this->form29updatedBy;
  598. }
  599. /**
  600. * @param User $form29UpdatedBy
  601. */
  602. public function setForm29UpdatedBy(User $form29UpdatedBy): void
  603. {
  604. $this->form29updatedBy = $form29UpdatedBy;
  605. }
  606. /**
  607. * @return User
  608. */
  609. public function getForm22UpdatedBy()
  610. {
  611. return $this->form22updatedBy;
  612. }
  613. /**
  614. * @param User $form22UpdatedBy
  615. */
  616. public function setForm22UpdatedBy(User $form22UpdatedBy): void
  617. {
  618. $this->form22updatedBy = $form22UpdatedBy;
  619. }
  620. /**
  621. * @return User
  622. */
  623. public function getOtrosUpdatedBy()
  624. {
  625. return $this->otrosUpdatedBy;
  626. }
  627. /**
  628. * @param User $otrosUpdatedBy
  629. */
  630. public function setOtrosUpdatedBy(User $otrosUpdatedBy): void
  631. {
  632. $this->otrosUpdatedBy = $otrosUpdatedBy;
  633. }
  634. /**
  635. * @return \DateTime
  636. */
  637. public function getLeyValidUntil()
  638. {
  639. return $this->leyValidUntil;
  640. }
  641. /**
  642. * @param \DateTime $leyValidUntil
  643. */
  644. public function setLeyValidUntil($leyValidUntil): void
  645. {
  646. $this->leyValidUntil = $leyValidUntil;
  647. }
  648. /**
  649. * @return \DateTime
  650. */
  651. public function getConstValidUntil()
  652. {
  653. return $this->constValidUntil;
  654. }
  655. /**
  656. * @param \DateTime $constValidUntil
  657. */
  658. public function setConstValidUntil($constValidUntil): void
  659. {
  660. $this->constValidUntil = $constValidUntil;
  661. }
  662. /**
  663. * @return \DateTime
  664. */
  665. public function getFinanzValidUntil()
  666. {
  667. return $this->finanzValidUntil;
  668. }
  669. /**
  670. * @param \DateTime $finanzValidUntil
  671. */
  672. public function setFinanzValidUntil($finanzValidUntil): void
  673. {
  674. $this->finanzValidUntil = $finanzValidUntil;
  675. }
  676. /**
  677. * @return \DateTime
  678. */
  679. public function getForm29ValidUntil()
  680. {
  681. return $this->form29validUntil;
  682. }
  683. /**
  684. * @param \DateTime $form29ValidUntil
  685. */
  686. public function setForm29ValidUntil($form29ValidUntil): void
  687. {
  688. $this->form29validUntil = $form29ValidUntil;
  689. }
  690. /**
  691. * @return \DateTime
  692. */
  693. public function getForm22ValidUntil()
  694. {
  695. return $this->form22validUntil;
  696. }
  697. /**
  698. * @param \DateTime $form22ValidUntil
  699. */
  700. public function setForm22ValidUntil($form22ValidUntil): void
  701. {
  702. $this->form22validUntil = $form22ValidUntil;
  703. }
  704. /**
  705. * @return \DateTime
  706. */
  707. public function getOtrosValidUntil()
  708. {
  709. return $this->otrosValidUntil;
  710. }
  711. /**
  712. * @param \DateTime $otrosValidUntil
  713. */
  714. public function setOtrosValidUntil($otrosValidUntil): void
  715. {
  716. $this->otrosValidUntil = $otrosValidUntil;
  717. }
  718. /**
  719. * @return \DateTime
  720. */
  721. public function getPepValidUntil()
  722. {
  723. return $this->pepValidUntil;
  724. }
  725. /**
  726. * @param \DateTime $pepValidUntil
  727. */
  728. public function setPepValidUntil($pepValidUntil): void
  729. {
  730. $this->pepValidUntil = $pepValidUntil;
  731. }
  732. /**
  733. * @return null
  734. */
  735. public function getMaya()
  736. {
  737. return $this->maya;
  738. }
  739. /**
  740. * @param null $maya
  741. */
  742. public function setMaya($maya): void
  743. {
  744. $this->maya = $maya;
  745. }
  746. /**
  747. * @return mixed
  748. */
  749. public function getMayaFile()
  750. {
  751. return $this->mayaFile;
  752. }
  753. /**
  754. * @param mixed $mayaFile
  755. */
  756. public function setMayaFile($mayaFile): void
  757. {
  758. $this->mayaFile = $mayaFile;
  759. }
  760. /**
  761. * @return mixed
  762. */
  763. public function getMayaUpdatedAt()
  764. {
  765. return $this->mayaUpdatedAt;
  766. }
  767. /**
  768. * @param mixed $mayaUpdatedAt
  769. */
  770. public function setMayaUpdatedAt($mayaUpdatedAt): void
  771. {
  772. $this->mayaUpdatedAt = $mayaUpdatedAt;
  773. }
  774. /**
  775. * @return mixed
  776. */
  777. public function getMayaValidUntil()
  778. {
  779. return $this->mayaValidUntil;
  780. }
  781. /**
  782. * @param mixed $mayaValidUntil
  783. */
  784. public function setMayaValidUntil($mayaValidUntil): void
  785. {
  786. $this->mayaValidUntil = $mayaValidUntil;
  787. }
  788. /**
  789. * @return mixed
  790. */
  791. public function getMayaUpdatedBy()
  792. {
  793. return $this->mayaUpdatedBy;
  794. }
  795. /**
  796. * @param mixed $mayaUpdatedBy
  797. */
  798. public function setMayaUpdatedBy($mayaUpdatedBy): void
  799. {
  800. $this->mayaUpdatedBy = $mayaUpdatedBy;
  801. }
  802. /**
  803. * @return string
  804. */
  805. public function getInfoBasica()
  806. {
  807. return $this->infoBasica;
  808. }
  809. /**
  810. * @param string $infoBasica
  811. */
  812. public function setInfoBasica(string $infoBasica = null)
  813. {
  814. $this->infoBasica = $infoBasica;
  815. }
  816. /**
  817. * @return File
  818. */
  819. public function getInfoBasicaFile()
  820. {
  821. return $this->infoBasicaFile;
  822. }
  823. /**
  824. * @param File $infoBasicaFile
  825. */
  826. public function setInfoBasicaFile(File $infoBasicaFile)
  827. {
  828. $this->infoBasicaFile = $infoBasicaFile;
  829. if ($this->infoBasicaFile instanceof UploadedFile) {
  830. $this->infoBasica = $infoBasicaFile->getClientOriginalExtension();
  831. $this->infoBasicaUpdatedAt = new \DateTime('now');
  832. }
  833. }
  834. /**
  835. * @return \DateTime
  836. */
  837. public function getInfoBasicaUpdatedAt()
  838. {
  839. return $this->infoBasicaUpdatedAt;
  840. }
  841. /**
  842. * @param \DateTime $infoBasicaUpdatedAt
  843. */
  844. public function setInfoBasicaUpdatedAt(\DateTime $infoBasicaUpdatedAt)
  845. {
  846. $this->infoBasicaUpdatedAt = $infoBasicaUpdatedAt;
  847. return $this;
  848. }
  849. /**
  850. * @return \DateTime
  851. */
  852. public function getInfoBasicaValidUntil()
  853. {
  854. return $this->infoBasicaValidUntil;
  855. }
  856. /**
  857. * @param \DateTime $infoBasicaValidUntil
  858. */
  859. public function setInfoBasicaValidUntil($infoBasicaValidUntil): void
  860. {
  861. $this->infoBasicaValidUntil = $infoBasicaValidUntil;
  862. }
  863. /**
  864. * @return User
  865. */
  866. public function getInfoBasicaUpdatedBy()
  867. {
  868. return $this->infoBasicaUpdatedBy;
  869. }
  870. /**
  871. * @param User $infoBasicaUpdatedBy
  872. */
  873. public function setInfoBasicaUpdatedBy(User $infoBasicaUpdatedBy): void
  874. {
  875. $this->infoBasicaUpdatedBy = $infoBasicaUpdatedBy;
  876. }
  877. /**
  878. * @return string
  879. */
  880. public function getMallaDirectores()
  881. {
  882. return $this->mallaDirectores;
  883. }
  884. /**
  885. * @param string $mallaDirectores
  886. */
  887. public function setMallaDirectores(string $mallaDirectores = null)
  888. {
  889. $this->mallaDirectores = $mallaDirectores;
  890. }
  891. /**
  892. * @return File
  893. */
  894. public function getMallaDirectoresFile()
  895. {
  896. return $this->mallaDirectoresFile;
  897. }
  898. /**
  899. * @param File $mallaDirectoresFile
  900. */
  901. public function setMallaDirectoresFile(File $mallaDirectoresFile)
  902. {
  903. $this->mallaDirectoresFile = $mallaDirectoresFile;
  904. if ($this->mallaDirectoresFile instanceof UploadedFile) {
  905. $this->mallaDirectores = $mallaDirectoresFile->getClientOriginalExtension();
  906. $this->mallaDirectoresUpdatedAt = new \DateTime('now');
  907. }
  908. }
  909. /**
  910. * @return \DateTime
  911. */
  912. public function getMallaDirectoresUpdatedAt()
  913. {
  914. return $this->mallaDirectoresUpdatedAt;
  915. }
  916. /**
  917. * @param \DateTime $mallaDirectoresUpdatedAt
  918. */
  919. public function setMallaDirectoresUpdatedAt(\DateTime $mallaDirectoresUpdatedAt)
  920. {
  921. $this->mallaDirectoresUpdatedAt = $mallaDirectoresUpdatedAt;
  922. return $this;
  923. }
  924. /**
  925. * @return \DateTime
  926. */
  927. public function getMallaDirectoresValidUntil()
  928. {
  929. return $this->mallaDirectoresValidUntil;
  930. }
  931. /**
  932. * @param \DateTime $mallaDirectoresValidUntil
  933. */
  934. public function setMallaDirectoresValidUntil($mallaDirectoresValidUntil): void
  935. {
  936. $this->mallaDirectoresValidUntil = $mallaDirectoresValidUntil;
  937. }
  938. /**
  939. * @return User
  940. */
  941. public function getMallaDirectoresUpdatedBy()
  942. {
  943. return $this->mallaDirectoresUpdatedBy;
  944. }
  945. /**
  946. * @param User $mallaDirectoresUpdatedBy
  947. */
  948. public function setMallaDirectoresUpdatedBy(User $mallaDirectoresUpdatedBy): void
  949. {
  950. $this->mallaDirectoresUpdatedBy = $mallaDirectoresUpdatedBy;
  951. }
  952. }