<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
* @ORM\Table(name="perfil_busqueda_interes")
*/
class PerfilBusquedaInteres extends BaseEntity
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\PropietarioContenido")
* @ORM\JoinColumn(nullable=false)
*/
private $propietarioContenido;
/**
* @ORM\Column(type="json")
*/
private $criterios = [];
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $nombre;
/**
* @ORM\Column(type="datetime")
*/
private $fechaCreacion;
public function __construct()
{
$this->fechaCreacion = new \DateTime();
}
public function getId(): ?int
{
return $this->id;
}
public function getPropietarioContenido(): ?PropietarioContenido
{
return $this->propietarioContenido;
}
public function setPropietarioContenido(?PropietarioContenido $propietarioContenido): self
{
$this->propietarioContenido = $propietarioContenido;
return $this;
}
public function getCriterios(): array
{
return $this->criterios;
}
public function setCriterios(array $criterios): self
{
$this->criterios = $criterios;
return $this;
}
public function getNombre(): ?string
{
return $this->nombre;
}
public function setNombre(?string $nombre): self
{
$this->nombre = $nombre;
return $this;
}
public function getFechaCreacion(): ?\DateTimeInterface
{
return $this->fechaCreacion;
}
public function setFechaCreacion(\DateTimeInterface $fechaCreacion): self
{
$this->fechaCreacion = $fechaCreacion;
return $this;
}
}