<?php
namespace App\Entity;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
/**
* @ORM\Entity
* @ORM\Table(name="enlace")
*/
class Enlace
{
/**
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @ORM\Column(type="string", nullable=true)
*/
private $descripcion;
/**
* @ORM\Column(type="string", nullable=true)
*/
private $link;
/**
* @ORM\Column(type="string", nullable=true, name="red_social")
*/
private $redSocial;
/**
* @ORM\Column(type="datetime", nullable=true, name="deleted_at")
*/
private $deletedAt;
/**
* @ORM\Column(type="datetime", nullable=false, name="updated_at", options={"default":"2024-01-01 00:00:00"})
* @Gedmo\Timestampable(on="update")
*/
private $updatedAt;
/**
* @ORM\Column(type="datetime", nullable=false, name="created_at", options={"default":"2024-01-01 00:00:00"})
* @Gedmo\Timestampable(on="create")
*/
private $createdAt;
/**
* @ORM\ManyToOne(targetEntity=\App\Entity\EntidadColaboradora::class, inversedBy="enlace")
* @ORM\JoinColumn(name="entidad_colaboradora_id", referencedColumnName="id", nullable=false)
*/
private $entidadColaboradora;
/**
* @ORM\ManyToOne(targetEntity=\App\Entity\Noticia::class, inversedBy="enlaces")
* @ORM\JoinColumn(name="noticia_id", referencedColumnName="id")
*/
private $noticia;
public function getId(): ?int
{
return $this->id;
}
public function setId($id)
{
$this->id = $id;
return $this;
}
public function getDescripcion(): ?string
{
return $this->descripcion;
}
public function setDescripcion(?string $descripcion): static
{
$this->descripcion = $descripcion;
return $this;
}
public function getLink(): ?string
{
return $this->link;
}
public function setLink(?string $link): static
{
$this->link = $link;
return $this;
}
public function getRedSocial(): ?string
{
return $this->redSocial;
}
public function setRedSocial(?string $redSocial): static
{
$this->redSocial = $redSocial;
return $this;
}
public function getDeletedAt(): ?\DateTimeInterface
{
return $this->deletedAt;
}
public function setDeletedAt(?\DateTimeInterface $deletedAt): static
{
$this->deletedAt = $deletedAt;
return $this;
}
public function getUpdatedAt(): ?\DateTimeInterface
{
return $this->updatedAt;
}
public function setUpdatedAt(\DateTimeInterface $updatedAt): static
{
$this->updatedAt = $updatedAt;
return $this;
}
public function getCreatedAt(): ?\DateTimeInterface
{
return $this->createdAt;
}
public function setCreatedAt(\DateTimeInterface $createdAt): static
{
$this->createdAt = $createdAt;
return $this;
}
public function getEntidadColaboradora(): ?EntidadColaboradora
{
return $this->entidadColaboradora;
}
public function setEntidadColaboradora(?EntidadColaboradora $entidadColaboradora): static
{
$this->entidadColaboradora = $entidadColaboradora;
return $this;
}
public function getNoticia(): ?Noticia
{
return $this->noticia;
}
public function setNoticia(?Noticia $noticia): static
{
$this->noticia = $noticia;
return $this;
}
}