src/Entity/GestorDocumental.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Gedmo\Mapping\Annotation as Gedmo;
  5. /**
  6.  * @ORM\Entity(repositoryClass="App\Repository\GestorDocumetnalRepository")
  7.  * @ORM\Table(name="gestor_documental", schema="perseo")
  8.  * @Gedmo\SoftDeleteable(fieldName="deletedAt", timeAware=false, hardDelete=true)
  9.  */
  10. class GestorDocumental
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\Column(type="bigint", options={"unsigned":true})
  15.      * @ORM\GeneratedValue(strategy="AUTO")
  16.      */
  17.     protected $id;
  18.     /**
  19.      * @ORM\Column(type="string", nullable=true)
  20.      */
  21.     protected $tipo;
  22.     /**
  23.      * @ORM\Column(type="string", nullable=true)
  24.      */
  25.     protected $nombre;
  26.     /**
  27.      * @ORM\Column(type="string", nullable=true)
  28.      */
  29.     protected $link;
  30.     /**
  31.      * @ORM\Column(type="smallint", nullable=true)
  32.      */
  33.     protected $descripcion;
  34.     /**
  35.      * @ORM\Column(type="datetime", nullable=true, name="deleted_at")
  36.      */
  37.     protected $deletedAt;
  38.     /**
  39.      * @ORM\Column(type="datetime", nullable=false, name="updated_at", options={"default":"2022-01-01 00:00:00"})
  40.      * @Gedmo\Timestampable(on="update")
  41.      */
  42.     protected $updatedAt;
  43.     /**
  44.      * @ORM\Column(type="datetime", nullable=false, name="created_at", options={"default":"2022-01-01 00:00:00"})
  45.      * @Gedmo\Timestampable(on="create")
  46.      */
  47.     protected $createdAt;
  48.     public function getId(): ?string
  49.     {
  50.         return $this->id;
  51.     }
  52.     public function getTipo(): ?string
  53.     {
  54.         return $this->tipo;
  55.     }
  56.     public function setTipo(?string $tipo): self
  57.     {
  58.         $this->tipo $tipo;
  59.         return $this;
  60.     }
  61.     public function getNombre(): ?string
  62.     {
  63.         return $this->nombre;
  64.     }
  65.     public function setNombre(?string $nombre): self
  66.     {
  67.         $this->nombre $nombre;
  68.         return $this;
  69.     }
  70.     public function getLink(): ?string
  71.     {
  72.         return $this->link;
  73.     }
  74.     public function setLink(?string $link): self
  75.     {
  76.         $this->link $link;
  77.         return $this;
  78.     }
  79.     public function getDescripcion(): ?int
  80.     {
  81.         return $this->descripcion;
  82.     }
  83.     public function setDescripcion(?int $descripcion): self
  84.     {
  85.         $this->descripcion $descripcion;
  86.         return $this;
  87.     }
  88.     public function getDeletedAt(): ?\DateTimeInterface
  89.     {
  90.         return $this->deletedAt;
  91.     }
  92.     public function setDeletedAt(?\DateTimeInterface $deletedAt): self
  93.     {
  94.         $this->deletedAt $deletedAt;
  95.         return $this;
  96.     }
  97.     public function getUpdatedAt(): ?\DateTimeInterface
  98.     {
  99.         return $this->updatedAt;
  100.     }
  101.     public function setUpdatedAt(\DateTimeInterface $updatedAt): self
  102.     {
  103.         $this->updatedAt $updatedAt;
  104.         return $this;
  105.     }
  106.     public function getCreatedAt(): ?\DateTimeInterface
  107.     {
  108.         return $this->createdAt;
  109.     }
  110.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  111.     {
  112.         $this->createdAt $createdAt;
  113.         return $this;
  114.     }
  115. }