src/Entity/IpaDocumento.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\IpaDocumentoRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=IpaDocumentoRepository::class)
  7.  * @ORM\Table(name="ipadocumentos")
  8.  */
  9. class IpaDocumento
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\ManyToOne(targetEntity=IpaTipodocumento::class, inversedBy="Documentos")
  19.      * @ORM\JoinColumn(nullable=false)
  20.      */
  21.     private $Tipo;
  22.     /**
  23.      * @ORM\Column(type="string", length=255)
  24.      */
  25.     private $titulo;
  26.     /**
  27.      * @ORM\Column(type="string", length=5)
  28.      */
  29.     private $numero;
  30.     /**
  31.      * @ORM\Column(type="string", length=255, nullable=true)
  32.      */
  33.     private $descripcion;
  34.     /**
  35.      * @ORM\Column(type="text", nullable=true)
  36.      */
  37.     private $contenido;
  38.     /**
  39.      * @ORM\Column(type="string", length=255)
  40.      */
  41.     private $slug;
  42.     /**
  43.      * @ORM\Column(type="boolean", nullable=true)
  44.      */
  45.     private $privado;
  46.     /**
  47.      * @ORM\Column(type="date", nullable=true)
  48.      */
  49.     private $fecha;
  50.     public function getId(): ?int
  51.     {
  52.         return $this->id;
  53.     }
  54.     public function getTipo(): ?IpaTipodocumento
  55.     {
  56.         return $this->Tipo;
  57.     }
  58.     public function setTipo(?IpaTipodocumento $Tipo): self
  59.     {
  60.         $this->Tipo $Tipo;
  61.         return $this;
  62.     }
  63.     public function getTitulo(): ?string
  64.     {
  65.         return $this->titulo;
  66.     }
  67.     public function setTitulo(string $titulo): self
  68.     {
  69.         $this->titulo $titulo;
  70.         return $this;
  71.     }
  72.     public function getNumero(): ?string
  73.     {
  74.         return $this->numero;
  75.     }
  76.     public function setNumero(string $numero): self
  77.     {
  78.         $this->numero $numero;
  79.         return $this;
  80.     }
  81.     public function getDescripcion(): ?string
  82.     {
  83.         return $this->descripcion;
  84.     }
  85.     public function setDescripcion(?string $descripcion): self
  86.     {
  87.         $this->descripcion $descripcion;
  88.         return $this;
  89.     }
  90.     public function getContenido(): ?string
  91.     {
  92.         return $this->contenido;
  93.     }
  94.     public function setContenido(?string $contenido): self
  95.     {
  96.         $this->contenido $contenido;
  97.         return $this;
  98.     }
  99.     public function getSlug(): ?string
  100.     {
  101.         return $this->slug;
  102.     }
  103.     public function setSlug(string $slug): self
  104.     {
  105.         $this->slug $slug;
  106.         return $this;
  107.     }
  108.     public function isPrivado(): ?bool
  109.     {
  110.         return $this->privado;
  111.     }
  112.     public function setPrivado(?bool $privado): self
  113.     {
  114.         $this->privado $privado;
  115.         return $this;
  116.     }
  117.     public function getFecha(): ?\DateTimeInterface
  118.     {
  119.         return $this->fecha;
  120.     }
  121.     public function setFecha(?\DateTimeInterface $fecha): self
  122.     {
  123.         $this->fecha $fecha;
  124.         return $this;
  125.     }
  126. }