src/Entity/Area.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\DBAL\Types\Types;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Gedmo\Mapping\Annotation as Gedmo;
  6. /**
  7. * @ORM\Entity
  8. * @ORM\Table(name="area")
  9. */
  10. class Area
  11. {
  12. /**
  13. * @ORM\Id
  14. * @ORM\Column(type="integer")
  15. * @ORM\GeneratedValue(strategy="AUTO")
  16. */
  17. private $id;
  18. /**
  19. * @ORM\Column(type="string", nullable=true)
  20. */
  21. private $nombre;
  22. /**
  23. * @ORM\Column(type="datetime", nullable=true, name="deleted_at")
  24. */
  25. private $deletedAt;
  26. /**
  27. * @ORM\Column(type="datetime", nullable=false, name="updated_at", options={"default":"2024-01-01 00:00:00"})
  28. * @Gedmo\Timestampable(on="update")
  29. */
  30. private $updatedAt;
  31. /**
  32. * @ORM\Column(type="datetime", nullable=false, name="created_at", options={"default":"2024-01-01 00:00:00"})
  33. * @Gedmo\Timestampable(on="create")
  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(): ?string
  46. {
  47. return $this->nombre;
  48. }
  49. public function setNombre(?string $nombre): static
  50. {
  51. $this->nombre = $nombre;
  52. return $this;
  53. }
  54. public function getDeletedAt(): ?\DateTimeInterface
  55. {
  56. return $this->deletedAt;
  57. }
  58. public function setDeletedAt(?\DateTimeInterface $deletedAt): static
  59. {
  60. $this->deletedAt = $deletedAt;
  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 getCreatedAt(): ?\DateTimeInterface
  73. {
  74. return $this->createdAt;
  75. }
  76. public function setCreatedAt(\DateTimeInterface $createdAt): static
  77. {
  78. $this->createdAt = $createdAt;
  79. return $this;
  80. }
  81. }