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

<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Pagina
*
* @ORM\Table(name="pagina", indexes={@ORM\Index(name="id_plantilla", columns={"id_plantilla"})})
* @ORM\Entity
*/
class Pagina
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* @var int
*
* @ORM\Column(name="url", type="integer", nullable=false)
*/
private $url;
/**
* @var int
*
* @ORM\Column(name="titulo", type="integer", nullable=false)
*/
private $titulo;
/**
* @var int|null
*
* @ORM\Column(name="contenido", type="integer", nullable=true, options={"default"="NULL"})
*/
private $contenido = NULL;
/**
* @var bool
*
* @ORM\Column(name="publicada", type="boolean", nullable=false)
*/
private $publicada = '0';
/**
* @var \DateTime
*
* @ORM\Column(name="fecha_creacion", type="datetime", nullable=false, options={"default"="CURRENT_TIMESTAMP"})
*/
private $fechaCreacion;
/**
* @var \DateTime
*
* @ORM\Column(name="fecha_actualizacion", type="datetime", nullable=false, options={"default"="CURRENT_TIMESTAMP"})
*/
private $fechaActualizacion;
/**
* @var \Plantillas
*
* @ORM\ManyToOne(targetEntity="Plantillas")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="id_plantilla", referencedColumnName="id")
* })
*/
private $idPlantilla;
public function getId(): ?int
{
return $this->id;
}
public function getUrl(): ?int
{
return $this->url;
}
public function setUrl(int $url): self
{
$this->url = $url;
return $this;
}
public function getTitulo(): ?int
{
return $this->titulo;
}
public function setTitulo(int $titulo): self
{
$this->titulo = $titulo;
return $this;
}
public function getContenido(): ?int
{
return $this->contenido;
}
public function setContenido(?int $contenido): self
{
$this->contenido = $contenido;
return $this;
}
public function getPublicada(): ?bool
{
return $this->publicada;
}
public function setPublicada(bool $publicada): self
{
$this->publicada = $publicada;
return $this;
}
public function getFechaCreacion(): ?\DateTimeInterface
{
return $this->fechaCreacion;
}
public function setFechaCreacion(\DateTimeInterface $fechaCreacion): self
{
$this->fechaCreacion = $fechaCreacion;
return $this;
}
public function getFechaActualizacion(): ?\DateTimeInterface
{
return $this->fechaActualizacion;
}
public function setFechaActualizacion(\DateTimeInterface $fechaActualizacion): self
{
$this->fechaActualizacion = $fechaActualizacion;
return $this;
}
public function getIdPlantilla(): ?Plantillas
{
return $this->idPlantilla;
}
public function setIdPlantilla(?Plantillas $idPlantilla): self
{
$this->idPlantilla = $idPlantilla;
return $this;
}
}