Aplicación para gestionar el WiFi y punto de luz en puertos.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

166 lines
3.2 KiB

5 years ago
5 years ago
5 years ago
5 years ago
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * Pagina
  6. *
  7. * @ORM\Table(name="pagina", indexes={@ORM\Index(name="id_plantilla", columns={"id_plantilla"})})
  8. * @ORM\Entity
  9. */
  10. class Pagina
  11. {
  12. /**
  13. * @var int
  14. *
  15. * @ORM\Column(name="id", type="integer", nullable=false)
  16. * @ORM\Id
  17. * @ORM\GeneratedValue(strategy="IDENTITY")
  18. */
  19. private $id;
  20. /**
  21. * @var int
  22. *
  23. * @ORM\Column(name="url", type="integer", nullable=false)
  24. */
  25. private $url;
  26. /**
  27. * @var int
  28. *
  29. * @ORM\Column(name="titulo", type="integer", nullable=false)
  30. */
  31. private $titulo;
  32. /**
  33. * @var int|null
  34. *
  35. * @ORM\Column(name="contenido", type="integer", nullable=true, options={"default"="NULL"})
  36. */
  37. private $contenido = NULL;
  38. /**
  39. * @var bool
  40. *
  41. * @ORM\Column(name="publicada", type="boolean", nullable=false)
  42. */
  43. private $publicada = '0';
  44. /**
  45. * @var \DateTime
  46. *
  47. * @ORM\Column(name="fecha_creacion", type="datetime", nullable=false, options={"default"="CURRENT_TIMESTAMP"})
  48. */
  49. private $fechaCreacion;
  50. /**
  51. * @var \DateTime
  52. *
  53. * @ORM\Column(name="fecha_actualizacion", type="datetime", nullable=false, options={"default"="CURRENT_TIMESTAMP"})
  54. */
  55. private $fechaActualizacion;
  56. /**
  57. * @var \Plantillas
  58. *
  59. * @ORM\ManyToOne(targetEntity="Plantillas")
  60. * @ORM\JoinColumns({
  61. * @ORM\JoinColumn(name="id_plantilla", referencedColumnName="id")
  62. * })
  63. */
  64. private $idPlantilla;
  65. public function getId(): ?int
  66. {
  67. return $this->id;
  68. }
  69. public function getUrl(): ?int
  70. {
  71. return $this->url;
  72. }
  73. public function setUrl(int $url): self
  74. {
  75. $this->url = $url;
  76. return $this;
  77. }
  78. public function getTitulo(): ?int
  79. {
  80. return $this->titulo;
  81. }
  82. public function setTitulo(int $titulo): self
  83. {
  84. $this->titulo = $titulo;
  85. return $this;
  86. }
  87. public function getContenido(): ?int
  88. {
  89. return $this->contenido;
  90. }
  91. public function setContenido(?int $contenido): self
  92. {
  93. $this->contenido = $contenido;
  94. return $this;
  95. }
  96. public function getPublicada(): ?bool
  97. {
  98. return $this->publicada;
  99. }
  100. public function setPublicada(bool $publicada): self
  101. {
  102. $this->publicada = $publicada;
  103. return $this;
  104. }
  105. public function getFechaCreacion(): ?\DateTimeInterface
  106. {
  107. return $this->fechaCreacion;
  108. }
  109. public function setFechaCreacion(\DateTimeInterface $fechaCreacion): self
  110. {
  111. $this->fechaCreacion = $fechaCreacion;
  112. return $this;
  113. }
  114. public function getFechaActualizacion(): ?\DateTimeInterface
  115. {
  116. return $this->fechaActualizacion;
  117. }
  118. public function setFechaActualizacion(\DateTimeInterface $fechaActualizacion): self
  119. {
  120. $this->fechaActualizacion = $fechaActualizacion;
  121. return $this;
  122. }
  123. public function getIdPlantilla(): ?Plantillas
  124. {
  125. return $this->idPlantilla;
  126. }
  127. public function setIdPlantilla(?Plantillas $idPlantilla): self
  128. {
  129. $this->idPlantilla = $idPlantilla;
  130. return $this;
  131. }
  132. }