src/Entity/Pais.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\DBAL\Types\Types;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity
  7. */
  8. class Pais extends \App\Entity\BaseEntity
  9. {
  10. /**
  11. * @ORM\Id
  12. * @ORM\Column(type="integer")
  13. * @ORM\GeneratedValue(strategy="AUTO")
  14. */
  15. private $id;
  16. /**
  17. * @ORM\Column(type="json", nullable=true)
  18. */
  19. private $nombre;
  20. /**
  21. * @ORM\Column(type="string", nullable=true)
  22. */
  23. private $idExterno;
  24. /**
  25. * @ORM\Column(type="datetime", nullable=true, name="updated_at", options={"default":"2024-01-01 00:00:00"})
  26. */
  27. private $updatedAt;
  28. /**
  29. * @ORM\Column(type="datetime", nullable=true, name="deleted_at")
  30. */
  31. private $deletedAt;
  32. /**
  33. * @ORM\Column(type="datetime", nullable=true, name="created_at", options={"default":"2024-01-01 00:00:00"})
  34. */
  35. private $createdAt;
  36. public function getId(): ?int
  37. {
  38. return $this->id;
  39. }
  40. public function setId($id)
  41. {
  42. $this->id = $id;
  43. return $this;
  44. }
  45. public function getNombre(): ?array
  46. {
  47. return $this->nombre;
  48. }
  49. public function setNombre(?array $nombre): static
  50. {
  51. $this->nombre = $nombre;
  52. return $this;
  53. }
  54. public function getIdExterno(): ?string
  55. {
  56. return $this->idExterno;
  57. }
  58. public function setIdExterno(?string $idExterno): static
  59. {
  60. $this->idExterno = $idExterno;
  61. return $this;
  62. }
  63. public function getUpdatedAt(): ?\DateTimeInterface
  64. {
  65. return $this->updatedAt;
  66. }
  67. public function setUpdatedAt(?\DateTimeInterface $updatedAt): static
  68. {
  69. $this->updatedAt = $updatedAt;
  70. return $this;
  71. }
  72. public function getDeletedAt(): ?\DateTimeInterface
  73. {
  74. return $this->deletedAt;
  75. }
  76. public function setDeletedAt(?\DateTimeInterface $deletedAt): static
  77. {
  78. $this->deletedAt = $deletedAt;
  79. return $this;
  80. }
  81. public function getCreatedAt(): ?\DateTimeInterface
  82. {
  83. return $this->createdAt;
  84. }
  85. public function setCreatedAt(?\DateTimeInterface $createdAt): static
  86. {
  87. $this->createdAt = $createdAt;
  88. return $this;
  89. }
  90. }