src/Entity/GestorDocumental.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Gedmo\Mapping\Annotation as Gedmo;
  5. use Symfony\Component\Uid\Uuid;
  6. /**
  7. * @ORM\Entity(repositoryClass="App\Repository\GestorDocumetnalRepository")
  8. * @ORM\Table(name="gestor_documental", schema="perseo")
  9. * @Gedmo\SoftDeleteable(fieldName="deletedAt", timeAware=false, hardDelete=true)
  10. */
  11. class GestorDocumental
  12. {
  13. /**
  14. * @ORM\Id
  15. * @ORM\Column(type="uuid", unique=true)
  16. * @ORM\GeneratedValue(strategy="CUSTOM")
  17. * @ORM\CustomIdGenerator(class="doctrine.uuid_generator")
  18. */
  19. protected $id;
  20. /**
  21. * @ORM\Column(type="string", nullable=true)
  22. */
  23. protected $tipo;
  24. /**
  25. * @ORM\Column(type="string", nullable=true)
  26. */
  27. protected $nombre;
  28. /**
  29. * @ORM\Column(type="string", nullable=true)
  30. */
  31. protected $link;
  32. /**
  33. * @ORM\Column(type="smallint", nullable=true)
  34. */
  35. protected $descripcion;
  36. /**
  37. * @ORM\Column(type="datetime", nullable=true, name="deleted_at")
  38. */
  39. protected $deletedAt;
  40. /**
  41. * @ORM\Column(type="datetime", nullable=false, name="updated_at", options={"default":"2022-01-01 00:00:00"})
  42. * @Gedmo\Timestampable(on="update")
  43. */
  44. protected $updatedAt;
  45. /**
  46. * @ORM\Column(type="datetime", nullable=false, name="created_at", options={"default":"2022-01-01 00:00:00"})
  47. * @Gedmo\Timestampable(on="create")
  48. */
  49. protected $createdAt;
  50. public function getId(): ?Uuid
  51. {
  52. return $this->id;
  53. }
  54. public function getTipo(): ?string
  55. {
  56. return $this->tipo;
  57. }
  58. public function setTipo(?string $tipo): self
  59. {
  60. $this->tipo = $tipo;
  61. return $this;
  62. }
  63. public function getNombre(): ?string
  64. {
  65. return $this->nombre;
  66. }
  67. public function setNombre(?string $nombre): self
  68. {
  69. $this->nombre = $nombre;
  70. return $this;
  71. }
  72. public function getLink(): ?string
  73. {
  74. return $this->link;
  75. }
  76. public function setLink(?string $link): self
  77. {
  78. $this->link = $link;
  79. return $this;
  80. }
  81. public function getDescripcion(): ?int
  82. {
  83. return $this->descripcion;
  84. }
  85. public function setDescripcion(?int $descripcion): self
  86. {
  87. $this->descripcion = $descripcion;
  88. return $this;
  89. }
  90. public function getDeletedAt(): ?\DateTimeInterface
  91. {
  92. return $this->deletedAt;
  93. }
  94. public function setDeletedAt(?\DateTimeInterface $deletedAt): self
  95. {
  96. $this->deletedAt = $deletedAt;
  97. return $this;
  98. }
  99. public function getUpdatedAt(): ?\DateTimeInterface
  100. {
  101. return $this->updatedAt;
  102. }
  103. public function setUpdatedAt(\DateTimeInterface $updatedAt): self
  104. {
  105. $this->updatedAt = $updatedAt;
  106. return $this;
  107. }
  108. public function getCreatedAt(): ?\DateTimeInterface
  109. {
  110. return $this->createdAt;
  111. }
  112. public function setCreatedAt(\DateTimeInterface $createdAt): self
  113. {
  114. $this->createdAt = $createdAt;
  115. return $this;
  116. }
  117. }